Tôi không thể nhận lệnh Gradle từ dòng lệnh để làm việc với hình ảnh mô phỏng API API Google API (Google APIs ARM (armeabi-v7a)
) - Tôi luôn nhận được com.android.ddmlib.ShellCommandUnresponsiveException
.Lệnh Gradle không thành công trên API 23 Trình mô phỏng API Google API (armeabi-v7a)
bước để tái sản xuất:
- Tạo một AVD với API 23
Google APIs ARM (armeabi-v7a)
- Clone https://github.com/googlemaps/android-maps-utils (hoặc sử dụng dự án của riêng bạn)
- Run
gradlew installDebug
từ dòng lệnh
Bạn' sẽ thấy:
: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
Nếu bạn chạy gradlew connectedCheck
bạn sẽ thấy một lỗi tương tự:
- 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
tôi thể cài đặt/chạy dự án và kiểm tra từ Android Studio (1.4) mà không cần bất kỳ vấn đề.
Lệnh Gradle dường như chạy tốt trên hình ảnh mô phỏng Google API API 21 Google API từ dòng lệnh.
Dưới đây là một thất bại ví dụ về Travis cho API 23 hình ảnh API giả lập Google:
https://travis-ci.org/barbeau/android-maps-utils/builds/83233500
... và một ví dụ thành công xây dựng khi sử dụng API 21 Google image API giả lập:
https://travis-ci.org/barbeau/android-maps-utils/builds/83234555
Sự khác biệt duy nhất giữa hai bản dựng là API trình mô phỏng API Google của 23 so với 21:
https://github.com/barbeau/android-maps-utils/commit/a5eecd7e7a4fc899ecd5eaeae6826414fefeae70
EDIT
tôi đã mở một vấn đề AOSP đây về vấn đề này:
https://code.google.com/p/android/issues/detail?id=190200
Tôi có cùng một prob lem. Khá bực bội. –
@BrianCunnie đồng ý - Tôi dự định mở một vấn đề về AOSP về điều này, chỉ cần không tìm thấy thời gian. Ngoài ra, FYI - dường như trình giả lập API cấp 22 cũng bị rối tung - https://code.google.com/p/android/issues/detail?id=176348&thanks=176348&ts=1433887196. –
Ok, chỉ cần mở một vấn đề AOSP ở đây - https://code.google.com/p/android/issues/detail?id=190200. –