Closed

Description
I'm trying to build the default example but it fails uploading the package to my device (Android 5.0):
Exceptions thrown while deploying.
command: react-native run-android
OS: Linux 15.04 64-bits
Log:
:app:installDebug FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:installDebug'.
> com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: Unable to upload some APKs
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 20.863 secs
Could not install the app on the device, see the error above.```
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
[-]Push built package to device fails[/-][+]Upload package to device fails[/+][-]Upload package to device fails[/-][+][Android] Upload package to device fails[/+]kmagiera commentedon Sep 15, 2015
Do you have device debugging enabled on your phone? Do you see your device in the output of
adb devices
command?mkonicek commentedon Sep 15, 2015
Glad you got this to work. "Unable to upload some APKs" is a generic Gradle error, do you have spaces in your project name by chance? Google gives me: https://code.google.com/p/android/issues/detail?id=180674
flipace commentedon Sep 15, 2015
I'm experiencing the same issue.
Huawei P8 - Android 5.0
OS: OSX 10.10.4
Enabled usb debugging and allowing all sources. My project name does not contain any special characters or spaces.
Edit: I can confirm that the remote dev server workaround by @peduxe works though.
mkonicek commentedon Sep 15, 2015
Looks like there are two separate issues here:
Do you need the step
react-native start
? I would expectreact-native run-android
to start the packager in a new window before failing in Gradle.kmagiera commentedon Sep 15, 2015
@peduxe Try entering
android
dir inside your project and running./gradlew :app:installDebug
from there.kmagiera commentedon Sep 15, 2015
Try running it with
--debug
131 remaining items