Error: Gradle: execution failed for task ':app:preDexDebug'

前端 未结 4 563
忘了有多久
忘了有多久 2020-11-30 10:34

I had a self created jar from another projected imported as a library into my other project. When I changed code in that project and exported a new jar to replaced the old o

4条回答
  •  旧时难觅i
    2020-11-30 11:15

    Although your problem seems fixed, I ended up here with a similar error (while building the samples from developer.android.com). In case it's helpful to others, I was able to solve it by setting JAVA_HOME to the appropriate value. In my case it was:

    export JAVA_HOME=/usr/lib/jvm/java-6-openjdk-amd64
    

提交回复
热议问题