-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Description
Issue
Found something similar in #7801
We are running it on Gitlab CI React Native project for both Android and iOS. It has a parent gitlab-ci and the respective child ones.
Env:
image: reactnativecommunity/react-native-android:latest
Kotlin: 1.8.0
Gradle: gradle-8.2-all.zip
Java: 17
Follow the same setup as Robert Savage from the prior closed issue
android/buil.gradle setting the plugin dependency to not be dynamic so classpath "com.facebook.react:react-native-gradle-plugin:8.2"
Then lastly in my android/app/build.gradle I set this as my dependencies:
dependencies {
implementation 'com.facebook.react:react-native:+'
// Exclude Flipper integration if not used
implementation('com.facebook.react:react-native:+') {
exclude group: 'com.facebook.flipper'
}
implementation 'com.facebook.soloader:soloader:0.10.1+'
}
in the gitlab-ci added this line below to chg the namespace.
- sed -i "s/namespace project.ext.namespace/namespace 'com.*********app'/" node_modules/@react-native-firebase/analytics/android/build.gradle
- cd android && ./gradlew clean && cd ..
Describe your issue here
Still a showstopper at this specific location
Build was configured to prefer settings repositories over project repositories but repository 'maven5' was added by plugin 'com.facebook.react'
Configure project :@react-native-firebase_analytics
:@react-native-firebase_analytics package.json found at /builds/.... /node_modules/@react-native-firebase/analytics/package.json
FAILURE: Build failed with an exception.
- Where:
Build file '/builds/... /node_modules/@react-native-firebase/analytics/android/build.gradle' line: 122 - What went wrong:
A problem occurred evaluating project ':@react-native-firebase_analytics'.
It is too late to set namespace
It has already been read to configure this project.
Consider either moving this call to be during evaluation,
or using the variant API.
Project Files
Explained above
Javascript
Click To Expand
package.json
:
# N/A
firebase.json
for react-native-firebase v6:
# N/A
iOS
Click To Expand
ios/Podfile
:
- I'm not using Pods
- I'm using Pods and my Podfile looks like:
# N/A
AppDelegate.m
:
// N/A
Android
Click To Expand
Have you converted to AndroidX?
- my application is an AndroidX application?
- I am using
android/gradle.settings
jetifier=true
for Android compatibility? - I am using the NPM package
jetifier
for react-native compatibility?
not sure about above but have it below
gradle.properties
android.enableJetifier=true
android/build.gradle
:
// N/A
android/app/build.gradle
:
// N/A
android/settings.gradle
:
// N/A
MainApplication.java
:
// N/A
AndroidManifest.xml
:
<!-- N/A -->
Environment
Click To Expand
react-native info
output:
OUTPUT GOES HERE
- Platform that you're experiencing the issue on:
- iOS
- Android
- iOS but have not tested behavior on Android
- Android but have not tested behavior on iOS
- Both
react-native-firebase
version you're using that has this issue:e.g. 5.4.3
Firebase
module(s) you're using that has the issue:e.g. Instance ID
- Are you using
TypeScript
?Y/N
&VERSION
package.json
"@react-native-firebase/analytics": "^21.13.0",
"@react-native-firebase/app": "^21.13.0",
- 👉 Check out
React Native Firebase
andInvertase
on Twitter for updates on the library.