android 编译的问题集合与解决方案
2018-04-24 本文已影响0人
吞噬残月
butterknife 8.0以上的版本报空指针异常
-
开始添加的内容
compile 'com.jakewharton:butterknife:8.8.1' compile 'com.jakewharton:butterknife-compiler:8.8.1' 或者修改成 apt 'com.jakewharton:butterknife-compiler:8.8.1'

-
修改成annotationProcessor 可以正常运行
compile 'com.jakewharton:butterknife:8.8.1' annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
Error:com.android.builder.dexing.DexArchiveBuilderException

-
解决方案 https://stackoverflow.com/questions/47137483/android-studio-3-0-dexarchivebuilderexception
image.png
-
在项目的 gradle.properties 中添加 android.enableD8=true 可以解决问题
android studio 在Vivo与oppo上无法Debug运行调试,报解析包异常
-
解决方案 gradle.properties 中添加
android.injected.testOnly=false