Lỗi: Thực thi không thành công cho công việc ': ứng dụng: chuẩn bịDebugAndroidTestDependencies'.Lỗi: Thực thi không thành công cho công việc ': ứng dụng: chuẩn bịDebugAndroidTestDependencies'. > Lỗi phụ thuộc. Xem bảng điều khiển để biết chi tiết
Dependency Error. See console for details.
Sau khi thêm các phụ thuộc sau đây trong tập tin app.gradle -
androidTestCompile 'com.android.support.test:runner:0.5'
androidTestCompile 'com.android.support.test:rules:0.5'
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
// add this for intent mocking support
androidTestCompile 'com.android.support.test.espresso:espresso-intents:2.2.2'
// add this for webview testing support
androidTestCompile 'com.android.support.test.espresso:espresso-web:2.2.2'
điều khiển Logs -
Thông tin: nhiệm vụ Gradle [: Ứng dụng: làm sạch,: Ứng dụng: generateDebugSources,: Ứng dụng : mockableAndroidJar,: app: prepareDebugUnitTestDependencies,: app: generateDebugAndroidTestSources,: app: assembleDebug] Cảnh báo: Xung đột với phụ thuộc 'com.android.support:support-annotations'. Các phiên bản được giải quyết cho ứng dụng (25.0.0) và ứng dụng thử nghiệm (23.1.1) khác nhau. Xem http://g.co/androidstudio/app-test-app-conflict để biết chi tiết. Lỗi: Thực thi không thành công cho công việc ': ứng dụng: chuẩn bịDebugAndroidTestDependencies'.
Dependency Error. See console for details. Information:BUILD FAILED Information:Total time: 28.459 secs Information:1 error Information:1 warning Information:See complete output in console
Cảm ơn! Đã có cùng một vấn đề và điều này giải quyết nó – enyciaa