Skip to content
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

Error when gradle assembleRelease #477

Open
anuk112 opened this issue Mar 25, 2021 · 3 comments
Open

Error when gradle assembleRelease #477

anuk112 opened this issue Mar 25, 2021 · 3 comments

Comments

@anuk112
Copy link

anuk112 commented Mar 25, 2021

hi i was try to release apk but got error in react-native-google-safetynet like this :

Task :react-native-google-safetynet:compileReleaseJavaWithJavac FAILED
/Users/xxxxxx/Documents/project1/node_modules/react-native-google-safetynet/android/src/main/java/com/rajivshah/safetynet/RNGoogleSafetyNetModule.java:4: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
^
/Users/xxxxxx/Documents/project1/node_modules/react-native-google-safetynet/android/src/main/java/com/rajivshah/safetynet/RNGoogleSafetyNetModule.java:97: error: cannot find symbol
public void onFailure(@nonnull Exception e) {
^
symbol: class NonNull

i hope i got the solution

@anuk112
Copy link
Author

anuk112 commented Apr 12, 2021

anyupdate solution?

@davepaiva
Copy link

davepaiva commented May 1, 2022

can try using ./gradlew app:assembleRelease

UPDATE:
The proper solution would be this commit from a forked version.
You can then use patch package to add the diff into your git commit

@keerthisaivel1626
Copy link

keerthisaivel1626 commented Nov 28, 2022

i try to create debug build using npx react-native run-android
I'm also facing this issue. Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants