-
Notifications
You must be signed in to change notification settings - Fork 24.2k
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
Unable to run on Android simulator after upgrade to 0.57.0 #21121
Comments
after upgrading to this version I cannot run my app on android too, but having another issue in metro bundler:
OK so the sad/funny case is this: on windows 10 I need v0.56 to run the developer build - react-native android-run, but with that I cannot build signed apk, so to do that I need to update to v0.57. |
I am also experiencing the same issue as @damianthekreeeytor NOTE: I haven't modified ANY code in this project. Description
Steps to reproduce
|
v 0.57 I'm getting the same on iOS. error: bundling failed: Error: Unable to resolve module Project does build in Xcode but borks when running it on the emulator. Edit: Running 'react-native run-ios' throws a different error:
Edit: Strange. It's also happening in Android. Before moving to iOS I had a working build in Android. Investigating... Edit: Upgrading to React 16.5.1 corrected this issue on Android. Testing for iOS now. |
Upgrading React to version 16.5.1 (with React Native 0.57) has corrected this issue in both Android and iOS for me. Can someone verify? |
I can build with Android Studio, but fail wiht |
What version of React are you running? |
"react": "^16.5.0", |
Try "react": "^16.5.1" |
i resolve it by this: https://stackoverflow.com/questions/49962174/react-native-build-error-for-android-after-gradle-upgrade update my JDK version and restart cmd |
So cleaning up dependencies and upgrading to latest (React, JDK, etc) is the solution? Or is there an actual issue here? The repro steps are not showing any issue to me 🤷♂️ |
@CarGuo I tried updating my JDK version as well. Also when I try to build from Android Studio it works, not with |
Steps to reproduce> react-native init <appName>
> cd <appName>
> react-native run-android Is there any specific environment required here? My specific problem here shown with the following error: A problem occurred configuring project ':app'.
> Could not generate a proxy class for class com.android.build.gradle.tasks.BuildArtifactReportTask. When building in Android studio everything works fine. I have also added @babel/core 7.0 and babel-core 7.0.0-bridge-0 to satisfy the dependency warnings. Updated to React v16.5.1 as well. |
i 'm same with you,help |
Update: On MacOS download JDK8 from the following: Java SE Development Kit 8 Downloads Important delete gradle Run |
Environment Variables
Environment
Description
After an upgrade to react-native 0.57.0, I am able to run on iOS simulator via
react-native run-ios
but when trying to build on android viareact-native run-android
it fails with the following error:I tried upgrading my version of Java to build 1.8.0_181-b13 and deleting the
~/.gradle
and rebuilding, but still experiencing the same issue.The case is true even from a brand new install using
react-native init
I followed all the necessary steps from Building Projects with Native Code for Android from the Getting Started guide to verify my environment is setup correctly still no-joy. Maybe I am missing something but when I revert to 0.56.0 it works fine.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: