I’m currently down a rabbit hole with “react-native-gradle-plugin”. I’m guessing that I installed some type of package which required this plugin. But I get the following error when I try to gradlew clean my android project:
Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.facebook.react:react-native-gradle-plugin:0.71.19.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/facebook/react/react-native-gradle-plugin/0.71.19/react-native-gradle-plugin-0.71.19.pom
- https://repo.maven.apache.org/maven2/com/facebook/react/react-native-gradle-plugin/0.71.19/react-native-gradle-plugin-0.71.19.pom
- https://www.jitpack.io/com/facebook/react/react-native-gradle-plugin/0.71.19/react-native-gradle-plugin-0.71.19.pom
Required by:
project :
I’m not totally clear – but I think the gradlew clean dependency resolution process does a package lookup in the standard Android app repos listed in the output above. And react-native-gradle-plugin isn’t found. ChatGPT says that react-native-gradle-plugin is an important package for Android-level build processes – but if the package isn’t found in the lookups listed above – then maybe I’m misunderstanding or confused about something.
I included “react-native-gradle-plugin” in my package.json and then ChatGPT led me to include refs to that package in android-level files. Is ChatGPT sending me down a rabbit hole with this one? Something doesn’t seem right – but I’m guessing that more experienced RN devs on this forum can provide a reality check and/or some insight on this scenario.