1罚缕、Error:Execution failed for task ':mobile:prepareComAndroidSupportAnimatedVectorDrawable2530Library'
注意這里是2530錯(cuò)誤,錯(cuò)誤出現(xiàn)的原因是gradle tool使用了3.0.0版本:
classpath 'com.android.tools.build:gradle:3.0.0-alpha1'
解決辦法:使用classpath 'com.android.tools.build:gradle:2.3.2'
2、Execution failed for task 'app:prepareDebugAndroidTestDependencies'
解決辦法:在項(xiàng)目gradle的android中加入:
configurations.all {
resolutionStrategy.force 'com.google.code.findbugs:jsr305:3.0.1'
}
3、Android Studio常見(jiàn)問(wèn)題 -- AndroidManifest.xml 覆蓋問(wèn)題
Attribute application@allowBackup value=(true) from AndroidManifest.xml:31:9-35
is also present at [:libimagecapture-release:] AndroidManifest.xml:11:18-45 value=(false).
Suggestion: add 'tools:replace="android:allowBackup"' to <application> element at AndroidManifest.xml:29:5-83:19 to override.
解決辦法:在AndroidManifest中添加下面兩句話
1、xmlns:tools="http://schemas.android.com/tools"
2棘钞、tools:replace="allowBackup"(application節(jié)點(diǎn)下)
類似的問(wèn)題http://www.w2bc.com/Article/32999
4、項(xiàng)目中因?yàn)榛煜霈F(xiàn) java.lang.NoClassDefFoundError錯(cuò)誤的一種解決方案(http://blog.csdn.net/sayid_des/article/details/50462261)
http://blog.csdn.net/sayid_des/article/details/50462261