I can't seem to get Gradle commands from the command line to work with the API 23 Google API emulator image (Google APIs ARM (armeabi-v7a)
) - I always get a com.android.ddmlib.ShellCommandUnresponsiveException
.
Steps to reproduce:
- Create an AVD with API 23
Google APIs ARM (armeabi-v7a)
- Clone https://github.com/googlemaps/android-maps-utils (or use your own project)
- Run
gradlew installDebug
from the command line
You'll see:
:demo:assembleDebug :demo:installDebug FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':demo:installDebug'. com.android.builder.testing.api.DeviceException: com.android.ddmlib.ShellCommandUnresponsiveException
If you run gradlew connectedCheck
you'll see a similar error:
- What went wrong: Execution failed for task ':library:connectedDebugAndroidTest'. com.android.builder.testing.api.TestException: com.android.builder.testing.api.DeviceException: com.android.ddmlib.ShellCommandUnresponsiveException
I can install/run the project and tests from Android Studio (1.4) without any problems.
Gradle commands seem to run fine on the API 21 Google API emulator image from the command line.
Here is an example failure on Travis for API 23 Google API emulator image:
https://travis-ci.org/barbeau/android-maps-utils/builds/83233500
...and an example successful build when using the API 21 Google API emulator image:
https://travis-ci.org/barbeau/android-maps-utils/builds/83234555
The only difference between the two builds is the Google API emulator API level of 23 vs. 21:
https://github.com/barbeau/android-maps-utils/commit/a5eecd7e7a4fc899ecd5eaeae6826414fefeae70
EDIT
I've opened an AOSP issue here on this problem:
https://code.google.com/p/android/issues/detail?id=190200