New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Included build node_modules/@react-native/gradle-plugin does not exists #36643
Comments
For react native 0.71, the package is located inside
This is wrong, you will have to use:
For React Native 0.72+ instead the correct path is the one you shared originally.
Also where have you copied this from @pr0tonion ? |
@cortinico I was using the upgrade helper. But I see now that I clearly missed that part... |
thanks for this Really helpful |
The updated path/namespace is
|
Awesome @ausshadu, that worked! |
@geeron updated |
@cortinico I am on react 0.72.3
Still getting the error |
i tried this but i get same problem
|
@Ritikkk-09 are you able to solve that ? |
Hi @cortinico, my project have react native 0.72.4, but it is showing the same error, As I noticed my node_modules doesn't contain that folder which you specified to add instead I found react-native-gradle-plugin inside node_modules |
@rishabhrawat4 Then it means that either your package or a dependency is depending on |
Can anyone help with this i upgraded my react-native-0.72.4. im getting this error.
I have a gradle-plugin folder inside the node_modules/@react-native folder. how can I solve this issue? |
@Suresh-Naragonda |
Hi there, None of the previous solutions are working for me. Even when I do "./gradlew clean" I got the same :
I followed the react native updated plus tried every previous solutions. Any ideas ? |
I am sorry but I am completely lost. I tried upgrading from v0.71.7 to v0.72.4 and then I this issue that says |
npm i react-native-gradle-plugin in my case I install it with npm |
I'm using RN 0.72+ and pnpm and I only see 2 symlinks in this folder: does anyone knows how to fix this using pnpm? |
Same problem here with pnpm and RN 0.72+ ... |
did u solve this problem? same here |
A workaround for pnpm is to point to library inside .pnpm |
I am facing error node_modules/react-native-gradle-plugin does not exist. I am using 0.64.4 version of react native and working on an existing project. Also I checked inside node modules, I don't see any library named react-native-gradle-plugin inside it. |
Description
Im trying to upgrade from 0.65.1 to 0.71.4 and I am encountering a problem where Gradle cannot find the gradle-plugin.
I am using yarn for installation.
I have triple checked that all changes are correct from the upgrade helper.
My react-native node package.
--- no gradle-plugin folder here
Steps I have tried.
Removing caches:
rm -r $HOME/.gradle/caches
Remove and reinstall packages
rm -rf node_modules
rm -rf yarn.lock
yarn install
React Native Version
0.71.4
Output of
npx react-native info
Steps to reproduce
Any of these steps fail the same ways
./gradlew clean
./gradlew cleanBuildCache
npx react-native run-android
Snack, code example, screenshot, or link to a repository
This is my package.json
android/build.gradle
android/app/build.gradle
Settings.gradle
The text was updated successfully, but these errors were encountered: