-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
(:fire)🔥 [🐛] Compile Error trying to run Android - :react-native-firebase_app:compileDebugJavaWithJavac #4616
Comments
Getting a NullPointerException during compile is going to be a tool-specific error, but we really need that stack trace. From the command line I think you can follow the error instructions (usually something like "run with Also, you might verify your local environment is working in general by trying https://github.com/mikehardy/rnfbdemo/blob/master/make-demo.sh |
Hi, Thanks for your reply. After I ran the command in the I get the following output as the reason for the exception error:
|
Strange. My setup is fairly similar and it works. Some things that might be different:
|
It was the Java version! I followed the steps in this answer here: I also made the change to my Gradle version to version 6.7.1. I appreciate the help Mike; this had me banging my head for a few hours! |
Glad that helped - thank you for filling out the full template. You never know which tiny detail becomes the only thing that matters. Be careful with that bug I mentioned though about bundling and the 4.1.x gradle plugin vs 4.0.x. You'll only notice that on release mode so it might bite you when you don't expect it. |
Issue
Hey guys,
When trying to run my react native app in android, from the CLI, I get this error:
Task :react-native-firebase_app:compileDebugJavaWithJavac FAILED
What went wrong:
Execution failed for task ':react-native-firebase_app:compileDebugJavaWithJavac'.
But when I run the app from Android Studio, the issue is not present, it works completely fine and the app launches.
Thanks in advance!
Project Files
Javascript
Click To Expand
package.json
:firebase.json
for react-native-firebase v6:Android
Click To Expand
Have you converted to AndroidX?
android/gradle.settings
jetifier=true
for Android compatibility?jetifier
for react-native compatibility?android/build.gradle
:android/app/build.gradle
:android/settings.gradle
:MainApplication.java
:AndroidManifest.xml
:Environment
Click To Expand
react-native info
output:react-native-firebase
version you're using that has this issue:10.0.0
Firebase
module(s) you're using that has the issue:@react-native-firebase/app
@react-native-firebase/admob
TypeScript
?N
The text was updated successfully, but these errors were encountered: