- Execution failed for task ':app:preDebugAndroidTestBuild
Error:Execution failed for task ‘:app:preDebugAndroidTestBuild’.
Conflict with dependency ‘com.android.support:support-annotations’ in project ‘:app’. Resolved versions for app (22.1.0) and test app (25.4.0) differ. See https://d.android.com/r/tools/test-apk-dependency-conflicts.html for details.
所依赖的dependency与当前版本不一致导致的。
解决:build->Rebuid-project
-
Error:UNEXPECTED TOP-LEVEL ERROR:
调大分配内存解决
解决:
dexOptions {
javaMaxHeapSize "4g"
}
长期更新
网友评论