我似乎无法从命令行获取Gradle命令来使用API 23 Google API模拟器图像(Google APIs ARM (armeabi-v7a)) - 我总是得到一个com.android.ddmlib.ShellCommandUnresponsiveException.
重现步骤:
Google APIs ARM (armeabi-v7a)gradlew installDebug命令行你会看到的:
:demo:assembleDebug:demo:installDebug FAILED
FAILURE:构建因异常而失败.
- 什么地方出了错:
任务':demo:installDebug'的执行失败.com.android.builder.testing.api.DeviceException:com.android.ddmlib.ShellCommandUnresponsiveException
如果你跑,gradlew connectedCheck你会看到类似的错误:
- 出了什么问题:任务执行失败':library:connectedDebugAndroidTest'.com.android.builder.testing.api.TestException:com.android.builder.testing.api.DeviceException:com.android.ddmlib.ShellCommandUnresponsiveException
我可以安装/运行Android Studio(1.4)中的项目和测试,没有任何问题.
从命令行,Gradle命令似乎在API 21 Google API仿真器映像上正常运行.
以下是Travis for API 23 Google API模拟器映像的示例失败:
https://travis-ci.org/barbeau/android-maps-utils/builds/83233500
...以及使用API 21 Google API仿真器映像时的成功构建示例:
https://travis-ci.org/barbeau/android-maps-utils/builds/83234555
这两个版本之间的唯一区别是Google API模拟器API级别为23对21:
https://github.com/barbeau/android-maps-utils/commit/a5eecd7e7a4fc899ecd5eaeae6826414fefeae70
编辑
我在这里就这个问题打开了一个AOSP问题:
android android-emulator android-studio android-gradle-plugin