react-native-payments
react-native-payments copied to clipboard
Android: package android.support.annotation does not exist
I'm getting on an attempt to build the app after the installation of react-native-payments
. It fails in ReactNativePaymentsModule.java
as there are following imports:
import android.support.annotation.Nullable;
import android.support.annotation.NonNull;
import android.app.Fragment;
import android.app.FragmentManager;
import android.support.annotation.RequiresPermission;
Errors I'm getting:
error: package android.support.annotation does not exist
error: cannot find symbol class NonNull
I'm using androidX and from what I understand Nullable is not found there.
android.useAndroidX=true
android.enableJetifier=true
My dependencies list includes:
implementation 'com.android.support:appcompat-v7:24.1.1'
implementation 'androidx.annotation:annotation:1.1.0'
same issue
Hi there! Sorry for the late reply. I just ran into this during upgrading to RN 0.63.
Try npx jetify
and see if the problem goes away. I'm not really sure what it does behind the scenes but it fixed things for me.
@nabilfreeman nice, thanks u :3