cesarferreira/dryrun

installDebug FAILED

snowjade opened this issue · 10 comments

I do not think this is a problem of dryrun , I just write it here to try to find the solution .
this is the part console log . It seems it can not install the apk automatic . maybe , dryrun
can just produce apk as a option .

:sample:packageDebug
:sample:zipalignDebug
:sample:assembleDebug
:sample:installDebug FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':sample:installDebug'.
> Failed to install on any devices.

* 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: 21.878 secs


======================================================

 Something went wrong while executing this:
  $ ./gradlew installDebug

======================================================


Xiang-mbp:~ Xiang$ adb devices
List of devices attached
192.168.31.150:5555	device

What if you connect your device via USB instead of IP? Does it work?

Sorry I did not respond promptly.
just for some of the app , it installDebug failed whether via IP or USB.
but some of the others app ,it worked .
for example : https://github.com/afollestad/material-dialogs , it does not work .

Actually, because I'm on windows I also can not use dryrun on that repository, because of a jack and jill bug
https://code.google.com/p/android/issues/detail?id=223700.
However, for me dryrun always picks the correctly device.

Just tried it and it works on my side @snowjade

yes, that is the condition . just some of the phone (eg mi meizu zuk) from China can not work for some app by terminal command or dryrun , while only work with android studio . Maybe they have done something terrible to the original android system . @cesarferreira

@snowjade are you sure you are using the same SDK directory that android studio is using?
Remember new android studios have now a build in SDK and java environment.
On windows this is very frustrating because I had to search this folder and change the environment variable path.
Is that the case @snowjade ?

image
image

you see , I think I use the same sdk. (please ignore the red letter in the image). @luispereira

why so specific? mine is just: /Users/cesar/Library/Android/sdk

I install sdk by homebrew ,then, so specific.

Yeah, that's ok then.

Just tried again and still works, by your logs it looks like it's not related to dryrun