-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to build android because of java classes #179
Comments
build.gradle -> `dependencies {
}` |
can some one help fix this? |
1 similar comment
can some one help fix this? |
@trickyc0d3r hi, did you find the answer? |
@rickyc0d3r & @nikita-usichenko |
Can confirm this fixes 'package androidx.annotation.Nullable not found' error when building Android Studio - thanks! |
thanks this works for me |
@Ahmad0811 hi. I faced problem when I run npx jetify : this is error : jetifier is deprecated. future versions of react-native cli may not run it by default. |
npx jetify worked for me. if you get this: Please consider installing 'jetifier' package before running 'jetify' command! ----then run : yarn add jetifier and hit npx jetify again. Thanks |
Task :react-native-location:compileReleaseJavaWithJavac FAILED
/Users/trickyc0d3r/work/delivio/node_modules/react-native-location/android/src/main/java/com/github/reactnativecommunity/location/Utils.java:5: error: package android.support.annotation does not exist
import android.support.annotation.Nullable;
^
/Users/trickyc0d3r/work/delivio/node_modules/react-native-location/android/src/main/java/com/github/reactnativecommunity/location/RNPlayServicesLocationProvider.java:9: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
^
/Users/trickyc0d3r/work/delivio/node_modules/react-native-location/android/src/main/java/com/github/reactnativecommunity/location/RNPlayServicesLocationProvider.java:10: error: cannot find symbol
import android.support.v4.app.ActivityCompat;
^
symbol: class ActivityCompat
location: package android.support.v4.app
/Users/trickyc0d3r/work/delivio/node_modules/react-native-location/android/src/main/java/com/github/reactnativecommunity/location/Utils.java:21: error: cannot find symbol
public static void emitEvent(ReactApplicationContext context, String eventName, @nullable Object params) {
^
symbol: class Nullable
location: class Utils
/Users/trickyc0d3r/work/delivio/node_modules/react-native-location/android/src/main/java/com/github/reactnativecommunity/location/RNPlayServicesLocationProvider.java:163: error: cannot find symbol
public void onFailure(@nonnull Exception e) {
^
symbol: class NonNull
/Users/trickyc0d3r/work/delivio/node_modules/react-native-location/android/src/main/java/com/github/reactnativecommunity/location/RNPlayServicesLocationProvider.java:227: error: cannot find symbol
int finePermission = ActivityCompat.checkSelfPermission(context, Manifest.permission.ACCESS_FINE_LOCATION);
^
symbol: variable ActivityCompat
location: class RNPlayServicesLocationProvider
/Users/trickyc0d3r/work/delivio/node_modules/react-native-location/android/src/main/java/com/github/reactnativecommunity/location/RNPlayServicesLocationProvider.java:228: error: cannot find symbol
int coarsePermission = ActivityCompat.checkSelfPermission(context, Manifest.permission.ACCESS_COARSE_LOCATION);
The text was updated successfully, but these errors were encountered: