美文网首页
android 编译的问题集合与解决方案

android 编译的问题集合与解决方案

作者: 吞噬残月 | 来源:发表于2018-04-24 09:50 被阅读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'
    
image.png
  • 修改成annotationProcessor 可以正常运行

    compile 'com.jakewharton:butterknife:8.8.1'
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
    

Error:com.android.builder.dexing.DexArchiveBuilderException

image.png

android studio 在Vivo与oppo上无法Debug运行调试,报解析包异常

  • 解决方案 gradle.properties 中添加

    android.injected.testOnly=false
    

相关文章

网友评论

      本文标题:android 编译的问题集合与解决方案

      本文链接:https://www.haomeiwen.com/subject/ymvvkftx.html