相关疑难解决方法(0)

API 23 Google API仿真器映像上的Gradle命令失败(armeabi-v7a)

我似乎无法从命令行获取Gradle命令来使用API​​ 23 Google API模拟器图像(Google APIs ARM (armeabi-v7a)) - 我总是得到一个com.android.ddmlib.ShellCommandUnresponsiveException.

重现步骤:

  1. 使用API​​ 23创建AVD Google APIs ARM (armeabi-v7a)
  2. 克隆https://github.com/googlemaps/android-maps-utils(或使用您自己的项目)
  3. 运行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问题:

https://code.google.com/p/android/issues/detail?id=190200

android android-emulator android-studio android-gradle-plugin

13
推荐指数
1
解决办法
4410
查看次数