annotation issue
ydv0121 opened this issue · comments
Make sure you have this in dependencies in your android project /app/build.gradle
implementation 'com.android.support:support-annotations:28.0.0'
Or if you use androidX you can change the import to import androidx.annotation.NonNull;
instead.
Make sure you have this in dependencies in your android project /app/build.gradle
implementation 'com.android.support:support-annotations:28.0.0'
Or if you use androidX you can change the import to
import androidx.annotation.NonNull;
instead.
yes i am using com.android.support:support-annotations:28.0.0 ..
and where to change import import androidx.annotation.NonNull;???
Ok, I see
You can test to replace
import android.support.annotation.NonNull;
with
import androidx.annotation.NonNull;
ok thank you error is gone from react-native-androw
but got many errors from other library after add this in gadle.properties
android.useAndroidX=true
android.enableJetifier=true
do you know how to remove androidx from my entire react native project
actually after updated play-service in reacet-native run-android i am getting this error..that's why i put this
android.useAndroidX=true
android.enableJetifier=true
I believe you can remove these
android.useAndroidX=true
android.enableJetifier=true
Or set them to false
android.useAndroidX=false
android.enableJetifier=false
android.useAndroidX=false
android.enableJetifier=false
ohk let me try..what about this ->
tools:replace="android:appComponentFactory" terminal show this to add this in in mainfest..
do i need to put this or not?
I'm not sure, but after you have removed the useAndroidX you can try to run "refactor>migrate app to app compat" in Android Studio
I'm not sure, but after you have removed the useAndroidX you can try to run "refactor>migrate app to app compat" in Android Studio
is it cause anything else?
I think it just changes all imports from androidx to android app compat..
ohk let me try..i removed this import androidx.annotation.NonNull; form react-native androw