jeudi 7 juillet 2016

Change classpath in Gradle caused ProcessException

I changed the classpath 'com.android.tools.build:gradle:1.1.1' to classpath 'com.android.tools.build:gradle:1.3.1' suggested by an answer here. The original problem was that when I updated from API 21 to 23, the org.apache.http was not supported anymore and I wanted to figure out a way and that answer had suggested to use legacy and change the classpath in main build.gradle as I mentioned above. This did not solve my problem. And when I changed it back to classpath 'com.android.tools.build:gradle:1.1.1' my project cannot be built any more.

I get the following error:

Error:Gradle: Execution failed for task ':***:dexDebug'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:Program FilesJavajdk1.7.0_07binjava.exe'' finished with non-zero exit value 1

I searched and did not find any similar issue. I tried restarting, cleaning project, etc. No success. Any suggestion?

Aucun commentaire:

Enregistrer un commentaire