You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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?
unable to build with latest version due to a different bug, I had to downgrade to 0.53.
Eventually fixed this after unlinking, uninstalling and reinstalling things. Sorry can't be specific because don't know exactly how I did it.
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: