-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Closed
Labels
Platform: AndroidAndroid applications.Android applications.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
Description
- Review the documentation: https://facebook.github.io/react-native
- Search for existing issues: https://github.com/facebook/react-native/issues
- Use the latest React Native release: https://github.com/facebook/react-native/releases
Environment Variables
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/Users/Damian/Scripts:/Users/Damian/Library/Android/sdk/tools:/Users/Damian/Library/Android/sdk/platform-tools:/Users/Damian/Library/Android/sdk/tools/bin:/Users/Damian/Library/Android/sdk/emulator:/Users/Damian/Library/Python/2.7/bin
ANDROID_HOME=/Users/Damian/Library/Android/sdk
Environment
React Native Environment Info:
System:
OS: macOS High Sierra 10.13.6
CPU: x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Memory: 20.93 MB / 16.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 10.10.0 - /usr/local/bin/node
Yarn: 1.9.4 - /usr/local/bin/yarn
npm: 6.4.1 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 11.4, macOS 10.13, tvOS 11.4, watchOS 4.3
Android SDK:
Build Tools: 23.0.1, 23.0.3, 25.0.0, 25.0.2, 26.0.3, 27.0.3
API Levels: 23, 26, 27
IDEs:
Android Studio: 3.1 AI-173.4907809
Xcode: 9.4.1/9F2000 - /usr/bin/xcodebuild
npmPackages:
react: 16.5.0 => 16.5.0
react-native: 0.57.0 => 0.57.0
npmGlobalPackages:
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7
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 via react-native run-android
it fails with the following error:
* What went wrong:
A problem occurred configuring project ':app'.
> Could not generate a proxy class for class com.android.build.gradle.tasks.BuildArtifactReportTask.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 10s
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html
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.
fantasy525 and labmda8667uu
Metadata
Metadata
Assignees
Labels
Platform: AndroidAndroid applications.Android applications.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.