-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Update to 0.60.4 breaks Android (error cannot find symbol) #25787
Comments
Turns out I was missing the new stuff inside The |
Lol. I had exactly the same issue. Humans. |
With React Native auto-linking, |
im having the same issue, however, after adding the native_modules.gradle in build.gradle. i get ERROR: Cannot invoke method getErrorStream() on null object. react: 16.10.2 i have followed all the upgrade-helpers changes, im coming from react-native: 0.59.8. any thoughts on how to fix it? |
@Capossito - Do you happen to have a link to the project? |
Adding |
Shows error that file does not exist! |
@o-pooja-o same problem here but ti actually does exist |
|
add apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) |
Followed Upgrade helper 0.59.9 to 0.62.2 and made sure to make still no joy, PackageList is still missing -
Any ideas? |
Hi verybluebot and all, and this in app/build.gradle at the end : and take a look at https://react-native-community.github.io/upgrade-helper/?from=0.59.0&to=0.61.5 for other changes in files. It worked for me! |
@friederbluemle is spot on 💯
Since Regardless of if that command builds/fails - if you go back to Android Studio and build the file - |
@LionelHoudelier thanks managed to get it working, but still having build fail on Android studio which makes Build from RN works but this feels such a horrible hack. |
this really help me thank you :) |
Just want to state the obvious in case anyone else who was stuck like me comes across this post. Ensure I inherited a project that was manually linking all it's packages and the above line wasn't added during a previous upgrade. |
Edit: you have to run |
Using in Jitsi SDK along with Native Modules. but Getting Error |
Getting the same error. |
@knightcube did you solved it ? On RN 0.63, having this issue too... |
Just click "Make Project" in Android Studio,and it will be generated automatically. |
React Native version:
Steps To Reproduce
0.60.4
npx react-native run-android
Describe what you expected to happen:
React Native to build
Description
The app compiles and works fine on iOS and xcode. However, when I try and run the new android code I face the following error:
This is my
MainApplication.java
The text was updated successfully, but these errors were encountered: