-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
react-native unable to build #18233
Comments
Thanks for posting this! It looks like your issue may refer to an older version of React Native. Can you reproduce the issue on the latest stable release? Thank you for your contributions. |
unable to build with latest version due to a different bug, I had to downgrade to 0.53. This is how it looks now
|
I tried running the app on a physical device like I have been doing but I got this error and no idea how to solve it.
Environment
Environment:
OS: Linux 4.13
Node: 8.9.4
Yarn: Not Found
npm: 5.6.0
Watchman: 4.9.0
Xcode: N/A
Android Studio: Not Found
Packages: (wanted => installed)
react: 16.2.0 => 16.2.0
react-native: 0.53.0 => 0.53.0
Expected Behavior
build in physical device (android phone) like I have been doing. This isn't a new project and it was working fine
Actual Behavior
FAILURE: Build failed with an exception.
A problem occurred configuring root project '2hats'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Get more help at https://help.gradle.org
BUILD FAILED in 4s
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
Steps to Reproduce
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
maven { url "http://jcenter.bintray.com/" }
maven { url 'http://repo1.maven.org/maven2' }
maven { url 'https://maven.google.com' }
// maven { url "https://dl.google.com/dl/android/maven2/" }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
}
allprojects {
repositories {
google()
mavenLocal()
jcenter()
maven { url "http://jcenter.bintray.com/"}
maven { url 'http://repo1.maven.org/maven2' }
mavenCentral()
maven { url 'https://maven.google.com' }
// maven { url "https://dl.google.com/dl/android/maven2/" }
maven { url 'https://jitpack.io' }
maven { url 'http://maven.localytics.com/public' }
// maven {
// url 'https://repo.adobe.com/nexus/content/repositories/releases/'
// }
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
}
}
ext {
react = [
nodeExecutableAndArgs: ["/usr/local/bin/node"]
]
}
task clean(type: Delete) {
delete rootProject.buildDir
}
The text was updated successfully, but these errors were encountered: