Comments (7)
Hey, I have encountered the very same issue and it has nothing to do, as @mikehardy mentioned, with Firebase but rather the setup you do.
The issue on my end was that I changed app/build.gradle namespace and applicationId, but didn't change folder structure and package inside MainApplication.kt and MainActivity.kt . This is exactly the same case in reproduction repository.
Leaving this here in case someone happens to encounter the same thing. Nothing has to do with FIrebase.
from react-native-firebase.
Hey, I have encountered the very same issue and it has nothing to do, as @mikehardy mentioned, with Firebase but rather the setup you do.
The issue on my end was that I changed app/build.gradle namespace and applicationId, but didn't change folder structure and package inside MainApplication.kt and MainActivity.kt . This is exactly the same case in reproduction repository.
Leaving this here in case someone happens to encounter the same thing. Nothing has to do with FIrebase.
This was exactly my problem. Not sure how you found it, but saved me more headaches. Thank you!!
from react-native-firebase.
Please could you paste the actual error message you are seeing in here? The repo link doesn't have the message and there is no example of it here. Put it in triple-backticks so it's formatted well like
Paste from the command line session where you tried your build and there was an error message, including the entire error message
from react-native-firebase.
@mikehardy thanks for your response
Here is error stack trace
Starting a Gradle Daemon (subsequent builds will be faster)
> Task :gradle-plugin:pluginDescriptors
> Task :gradle-plugin:processResources
> Task :gradle-plugin:compileKotlin
> Task :gradle-plugin:compileJava NO-SOURCE
> Task :gradle-plugin:classes
> Task :gradle-plugin:jar
> Task :gradle-plugin:inspectClassesForKotlinIC
> Configure project :react-native-firebase_app
:react-native-firebase_app package.json found at /Users/apotapov/Desktop/DEVELOPMENT/react-native-firebase-error/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_app:firebase.bom using default value: 32.7.0
:react-native-firebase_app:play.play-services-auth using default value: 20.7.0
:react-native-firebase_app package.json found at /Users/apotapov/Desktop/DEVELOPMENT/react-native-firebase-error/node_modules/@react-native-firebase/app/package.json
:react-native-firebase_app:version set from package.json: 18.7.3 (18,7,3 - 18007003)
:react-native-firebase_app:android.compileSdk using custom value: 34
:react-native-firebase_app:android.targetSdk using custom value: 34
:react-native-firebase_app:android.minSdk using custom value: 21
:react-native-firebase_app:reactNativeAndroidDir /Users/apotapov/Desktop/DEVELOPMENT/react-native-firebase-error/node_modules/react-native/android
> Task :app:generateCodegenSchemaFromJavaScript SKIPPED
> Task :app:generateCodegenArtifactsFromSchema SKIPPED
> Task :app:generatePackageList
> Task :app:preBuild
> Task :app:preDebugBuild
> Task :app:generateDebugBuildConfig
> Task :react-native-firebase_app:preBuild UP-TO-DATE
> Task :react-native-firebase_app:preDebugBuild UP-TO-DATE
> Task :react-native-firebase_app:writeDebugAarMetadata
> Task :app:generateDebugResValues
> Task :app:processDebugGoogleServices
> Task :react-native-firebase_app:generateDebugResValues
> Task :react-native-firebase_app:generateDebugResources
> Task :app:checkDebugAarMetadata
> Task :react-native-firebase_app:packageDebugResources
> Task :app:mapDebugSourceSetPaths
> Task :app:generateDebugResources
> Task :app:packageDebugResources
> Task :app:createDebugCompatibleScreenManifests
> Task :app:extractDeepLinksDebug
> Task :react-native-firebase_app:extractDeepLinksDebug
> Task :react-native-firebase_app:compileDebugLibraryResources
> Task :react-native-firebase_app:generateDebugBuildConfig
> Task :app:mergeDebugResources
> Task :react-native-firebase_app:javaPreCompileDebug
> Task :app:javaPreCompileDebug
> Task :react-native-firebase_app:parseDebugLocalResources
> Task :app:mergeDebugShaders
> Task :app:compileDebugShaders NO-SOURCE
> Task :app:generateDebugAssets UP-TO-DATE
> Task :react-native-firebase_app:mergeDebugShaders
> Task :react-native-firebase_app:compileDebugShaders NO-SOURCE
> Task :react-native-firebase_app:generateDebugAssets UP-TO-DATE
> Task :app:parseDebugLocalResources
> Task :react-native-firebase_app:packageDebugAssets
> Task :react-native-firebase_app:processDebugManifest
package="io.invertase.firebase" found in source AndroidManifest.xml: /Users/apotapov/Desktop/DEVELOPMENT/react-native-firebase-error/node_modules/@react-native-firebase/app/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="io.invertase.firebase" from the source AndroidManifest.xml: /Users/apotapov/Desktop/DEVELOPMENT/react-native-firebase-error/node_modules/@react-native-firebase/app/android/src/main/AndroidManifest.xml.
> Task :app:mergeDebugAssets
> Task :app:processDebugMainManifest
> Task :app:processDebugManifest
> Task :app:compressDebugAssets
> Task :react-native-firebase_app:generateDebugRFile
> Task :app:desugarDebugFileDependencies
> Task :react-native-firebase_app:compileDebugJavaWithJavac
> Task :react-native-firebase_app:processDebugJavaRes NO-SOURCE
> Task :react-native-firebase_app:bundleLibRuntimeToJarDebug
> Task :react-native-firebase_app:bundleLibCompileToJarDebug
> Task :app:mergeDebugJniLibFolders
> Task :react-native-firebase_app:mergeDebugJniLibFolders
> Task :react-native-firebase_app:mergeDebugNativeLibs NO-SOURCE
> Task :app:validateSigningDebug
> Task :react-native-firebase_app:copyDebugJniLibsProjectOnly
> Task :app:writeDebugAppMetadata
> Task :app:checkDebugDuplicateClasses
> Task :app:writeDebugSigningConfigVersions
> Task :app:processDebugManifestForPackage
> Task :app:processDebugResources
> Task :app:mergeDebugNativeLibs
> Task :app:compileDebugKotlin FAILED
> Task :app:mergeLibDexDebug
> Task :app:stripDebugDebugSymbols
> Task :app:mergeExtDexDebug
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
52 actionable tasks: 52 executed
info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
e: file:///Users/apotapov/Desktop/DEVELOPMENT/react-native-firebase-error/android/app/src/main/java/com/awesomeproject/MainApplication.kt:27:58 Unresolved reference: BuildConfig
e: file:///Users/apotapov/Desktop/DEVELOPMENT/react-native-firebase-error/android/app/src/main/java/com/awesomeproject/MainApplication.kt:29:50 Unresolved reference: BuildConfig
e: file:///Users/apotapov/Desktop/DEVELOPMENT/react-native-firebase-error/android/app/src/main/java/com/awesomeproject/MainApplication.kt:30:49 Unresolved reference: BuildConfig
e: file:///Users/apotapov/Desktop/DEVELOPMENT/react-native-firebase-error/android/app/src/main/java/com/awesomeproject/MainApplication.kt:39:9 Unresolved reference: BuildConfig
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> Compilation error. See log for more details
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 23s
info Run CLI with --verbose flag for more details.
from react-native-firebase.
Please could you paste the actual error message you are seeing in here? The repo link doesn't have the message and there is no example of it here. Put it in triple-backticks so it's formatted well like
Paste from the command line session where you tried your build and there was an error message, including the entire error message
I provided android building logs. Please help to solve this problem. Obviously the problem is with firebase
from react-native-firebase.
Obviously the problem is with firebase
Statements like this are so frequently wrong when troubleshooting software they should mentally throw up a red flag for you any time you have the urge to say them.
Very few things are obvious. This is not obviously a problem with firebase. And firebase is a cloud service, an underlying firebase-android-sdk, and react-native-firebase layers. Which is it, if it is "firebase"?
Note: Recompile with -Xlint:deprecation for details.
e: file:///Users/apotapov/Desktop/DEVELOPMENT/react-native-firebase-error/android/app/src/main/java/com/awesomeproject/MainApplication.kt:27:58 Unresolved reference: BuildConfig
e: file:///Users/apotapov/Desktop/DEVELOPMENT/react-native-firebase-error/android/app/src/main/java/com/awesomeproject/MainApplication.kt:29:50 Unresolved reference: BuildConfig
e: file:///Users/apotapov/Desktop/DEVELOPMENT/react-native-firebase-error/android/app/src/main/java/com/awesomeproject/MainApplication.kt:30:49 Unresolved reference: BuildConfig
e: file:///Users/apotapov/Desktop/DEVELOPMENT/react-native-firebase-error/android/app/src/main/java/com/awesomeproject/MainApplication.kt:39:9 Unresolved reference: BuildConfig
https://stackoverflow.com/questions/60942575/unresolved-reference-buildconfig-in-kotlin
So, you have an error message in your application code (note it is referenced in MainApplication.kt, not any react-native-firebase code) and the error message is for the lines using BuildConfig (https://github.com/PotapovALeksey/react-native-firebase-error/blob/cf318b5937f018b1e3caf18d60b2adefccabc186/android/app/src/main/java/com/awesomeproject/MainApplication.kt#L27-L30) that seems odd
Have you tried to enable the gradle buildconfig feature as suggested on the first stackoverflow that comes up for this error?
That'll solve it
from react-native-firebase.
Hey, I have encountered the very same issue and it has nothing to do, as @mikehardy mentioned, with Firebase but rather the setup you do.
The issue on my end was that I changed app/build.gradle namespace and applicationId, but didn't change folder structure and package inside MainApplication.kt and MainActivity.kt . This is exactly the same case in reproduction repository.
Leaving this here in case someone happens to encounter the same thing. Nothing has to do with FIrebase.
Thank you, checking and modifying the namespace and applicationId has worked for me: "com.app_name" according to the path: \android\app\src\main\java\com\app_name. Thank you very much.
from react-native-firebase.
Related Issues (20)
- [🐛] pod install issue after added library HOT 2
- [🐛] FirebaseCoreInternal/FirebaseCoreInternal.modulemap' not found after XCode required to download iOS 17.2 HOT 4
- [🐛] 🔥 remote config method `fetchAndActivate()` inconsistent with method `fetch()` and then `activate()` on iOS only
- [🐛] [ANDROID] Duplicate class com.google.firebase.Timestamp HOT 7
- [🐛] Bug Report Title - java.lang.RuntimeException: Could not invoke RNFBFirestoreDocumentModule.documentOnSnapshot only android HOT 1
- [🐛] CocoaPods could not find compatible versions for pod "Firebase/Messaging" HOT 2
- [🐛] 'FlipperKit/FlipperClient.h' file not found HOT 3
- [🐛] Bug Report Title - auth()?.currentUser.getIdToken(true) returns null to different users (80% on iOS)
- [🐛] [email protected] support? HOT 24
- 🔥 Error: [auth/missing-client-identifier] This request is missing a valid app identifier, meaning that Play Integrity checks, and reCAPTCHA checks were unsuccessful HOT 10
- [🐛][iOS] - Remote config - Crash app when launching app HOT 3
- [🐛] (Automated/Scheduled) Push Notifications NOT working in iOS HOT 1
- :fire: Error Using loadBundle() in Firestore: Unknown error or an error from a different error domain. HOT 7
- [🐛] firestore get document data doesn't work on RN0.74.1 and 20.0.0 HOT 1
- [🐛] A problem occurred evaluating project ':react-native-firebase_app'. It is too late to set namespace It has already been read to configure this project. HOT 1
- [📚] Documentation Issue Title - Migrating to v6 HOT 1
- [🐛] Firestore get document doesn't work in production HOT 6
- /ios/Pods/Headers/Private/grpc/gRPC-Core.modulemap' not found HOT 1
- Missing Item fields for GA4 in Analytics HOT 2
- [🐛] Icon notification not display in xiaomi devices - CHANGE ME
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-firebase.