Dx bad class file magic (cafebabe) or version (0033.0000) with ADK14

前端 未结 18 1978
攒了一身酷
攒了一身酷 2020-11-27 05:00

Since moving to ADK14, I have been unable to build new apks for release on my Windows 7 system.

Building fails with \"conversion to dalvik format failed with error 1

18条回答
  •  死守一世寂寞
    2020-11-27 05:56

    If you are using Android Studio, this can be fixed by using the above advice to target Java 1.6 in your build.gradle by adding the following lines:

    apply plugin: 'java'
    sourceCompatibility = 1.6
    targetCompatibility = 1.6
    

    Discovered this fix from this blog post: http://www.alonsoruibal.com/my-gradle-tips-and-tricks/

提交回复
热议问题