{
"name": "ProjectName",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native start",
"test": "jest",
"lint": "eslint ."
},
"dependencies": {
"@react-native-community/masked-view": "^0.1.10",
"@react-native-firebase/admob": "^10.0.0",
"@react-native-firebase/app": "^10.0.0",
"@react-native-firebase/auth": "^10.0.0",
"@react-native-firebase/firestore": "^10.0.0",
"@react-native-firebase/functions": "^10.0.0",
"@react-native-firebase/storage": "^10.0.0",
"@react-navigation/drawer": "^5.9.3",
"@react-navigation/material-top-tabs": "^5.2.19",
"@react-navigation/native": "^5.7.6",
"@react-navigation/stack": "^5.9.3",
"currency-symbol-map": "^4.0.4",
"moment": "^2.29.1",
"popup-ui": "git+https://github.com/jawkhan/react-native-popup-ui.git",
"react": "17.0.1",
"react-moment": "^1.0.0",
"react-native": "0.63.3",
"react-native-auto-height-image": "^3.2.3",
"react-native-carousel-control": "^2.0.1",
"react-native-country-picker-modal": "^2.0.0",
"react-native-date-picker": "^3.2.5",
"react-native-gesture-handler": "^1.8.0",
"react-native-html-to-pdf": "^0.8.0",
"react-native-image-crop-picker": "^0.35.1",
"react-native-material-dropdown": "^0.11.1",
"react-native-paper": "^4.2.0",
"react-native-reanimated": "^1.13.1",
"react-native-safe-area-context": "^3.1.8",
"react-native-screens": "^2.11.0",
"react-native-searchable-list": "^1.1.3",
"react-native-switch-selector": "^2.0.6",
"react-native-tab-view": "^2.15.2",
"react-native-vector-icons": "^7.1.0",
"tipsi-stripe": "^7.5.3"
},
"devDependencies": {
"@babel/core": "^7.12.3",
"@babel/runtime": "^7.12.1",
"@react-native-community/eslint-config": "^2.0.0",
"babel-jest": "^26.6.0",
"eslint": "^7.11.0",
"jest": "^26.6.0",
"metro-react-native-babel-preset": "^0.63.0",
"react-test-renderer": "17.0.1"
},
"jest": {
"preset": "react-native"
}
}
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:{ "name": "ProjectName", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", "start": "react-native start", "test": "jest", "lint": "eslint ." }, "dependencies": { "@react-native-community/masked-view": "^0.1.10", "@react-native-firebase/admob": "^10.0.0", "@react-native-firebase/app": "^10.0.0", "@react-native-firebase/auth": "^10.0.0", "@react-native-firebase/firestore": "^10.0.0", "@react-native-firebase/functions": "^10.0.0", "@react-native-firebase/storage": "^10.0.0", "@react-navigation/drawer": "^5.9.3", "@react-navigation/material-top-tabs": "^5.2.19", "@react-navigation/native": "^5.7.6", "@react-navigation/stack": "^5.9.3", "currency-symbol-map": "^4.0.4", "moment": "^2.29.1", "popup-ui": "git+https://github.com/jawkhan/react-native-popup-ui.git", "react": "17.0.1", "react-moment": "^1.0.0", "react-native": "0.63.3", "react-native-auto-height-image": "^3.2.3", "react-native-carousel-control": "^2.0.1", "react-native-country-picker-modal": "^2.0.0", "react-native-date-picker": "^3.2.5", "react-native-gesture-handler": "^1.8.0", "react-native-html-to-pdf": "^0.8.0", "react-native-image-crop-picker": "^0.35.1", "react-native-material-dropdown": "^0.11.1", "react-native-paper": "^4.2.0", "react-native-reanimated": "^1.13.1", "react-native-safe-area-context": "^3.1.8", "react-native-screens": "^2.11.0", "react-native-searchable-list": "^1.1.3", "react-native-switch-selector": "^2.0.6", "react-native-tab-view": "^2.15.2", "react-native-vector-icons": "^7.1.0", "tipsi-stripe": "^7.5.3" }, "devDependencies": { "@babel/core": "^7.12.3", "@babel/runtime": "^7.12.1", "@react-native-community/eslint-config": "^2.0.0", "babel-jest": "^26.6.0", "eslint": "^7.11.0", "jest": "^26.6.0", "metro-react-native-babel-preset": "^0.63.0", "react-test-renderer": "17.0.1" }, "jest": { "preset": "react-native" } }firebase.jsonfor react-native-firebase v6:{ "react-native": { "admob_android_app_id": "android_pub_id", "admob_ios_app_id": "ios_pub_id", "admob_delay_app_measurement_init": true } }Android
Click To Expand
Have you converted to AndroidX?
android/gradle.settingsjetifier=truefor Android compatibility?jetifierfor react-native compatibility?android/build.gradle:buildscript { ext { buildToolsVersion = "28.0.3" minSdkVersion = 16 compileSdkVersion = 28 targetSdkVersion = 28 } repositories { google() jcenter() } dependencies { classpath('com.android.tools.build:gradle:4.1.1') classpath 'com.google.gms:google-services:4.3.4' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { mavenLocal() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url("$rootDir/../node_modules/react-native/android") } maven { // Android JSC is installed from npm url("$rootDir/../node_modules/jsc-android/dist") } google() jcenter() maven { url 'https://www.jitpack.io' } maven { url 'https://maven.google.com' } } }android/app/build.gradle:android/settings.gradle:MainApplication.java:AndroidManifest.xml:Environment
Click To Expand
react-native infooutput:react-native-firebaseversion you're using that has this issue:10.0.0Firebasemodule(s) you're using that has the issue:@react-native-firebase/app@react-native-firebase/admobTypeScript?N