Closed Florent75 closed 4 months ago
What exactly is at line 169 in your build.gradle?
Hi Krizzu,
Thanks fo your quick answer. You were right, I forgot to remove an old try I did on line 169.
After removing it : I have now the following error :
Where: Script '/Users/florent/Bocoloco/hermes/node_modules/@react-native-community/cli-platform-android/native_modules.gradle' line: 195
What went wrong: A problem occurred evaluating project ':app'.
Project with path ':react-native-async-storage_async-storage' could not be found in project ':app'.
When I check in line 195, here is what I have : /**
app
project
*/
void addReactNativeModuleDependencies(Project appProject) {
reactNativeModules.forEach { reactNativeModule ->
def nameCleansed = reactNativeModule["nameCleansed"]
def dependencyConfiguration = reactNativeModule["dependencyConfiguration"]
appProject.dependencies {
if (reactNativeModulesBuildVariants.containsKey(nameCleansed)) {
reactNativeModulesBuildVariants
.get(nameCleansed)
.forEach { buildVariant ->
if(dependencyConfiguration != null) {
"${buildVariant}${dependencyConfiguration}"
} else {
"${buildVariant}Implementation" project(path: ":${nameCleansed}")
}
}
} else {
if(dependencyConfiguration != null) {
"${dependencyConfiguration}"
} else {
// this.logger.error("${nameCleansed}")
implementation project(path: ":${nameCleansed}")
}
}
}
}
}Here is the version of the package : "@react-native-community/cli-platform-android": "^11.3.9",
Any ideas ?
bump same problem
Bump same problem.
We use the following versions:
"react-native": "^0.72.6", "@react-native-community/cli": "11.3.9", "@react-native-community/cli-platform-android": "11.3.9", "@react-native-community/cli-platform-ios": "11.3.9", "@react-native-async-storage/async-storage": "^1.21.0",
I'd need more repro step help out. When upgrading to 70+, make sure your project has proper setup, because RN changed how native modules are linked together. I prefer using Upgrade Helper tool to not miss anything, see RN docs about upgrade
This issue has been marked as stale due to inactivity. Please respond or otherwise resolve the issue within 7 days or it will be closed.
What happened?
I update my RN from 0.62 to 0.71.
Then I did npx react-native start --reset-cache
I got the following error :
FAILURE: Build failed with an exception.
Where: Build file '/Users/florent/Bocoloco/hermes/android/app/build.gradle' line: 169
What went wrong: A problem occurred evaluating project ':app'.
I have checked previous similar issue. One stuff I don't get is that I am supposed to remove manual linking, but I have never put it in place.
So my main question is : should I do something to remove manual linking ? Something specific to this repo ?
Version
1.17.11
What platforms are you seeing this issue on?
System Information
Steps to Reproduce
Install package and try to start the android app