ExecException: Process'command'E:\jdk1.8.0_60\bin\java.exe'' finished with non-zero exit value 2

今天写东西,要用到HttpClient的jar包,然后我就在android studio导入这样一群的jar包,(是的,我把他们全部导入了!!)
ExecException: Process'command'E:\jdk1.8.0_60\bin\java.exe'' finished with non-zero exit value 2_第1张图片
然后就报错了

Error:Execution failed for task':
app_downloadfile:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.
ProcessException: org.gradle.process.internal.
ExecException: Process 'command 'E:\Java\jdk1.8.0_60\bin\java.exe'' finished with non-zero exit value 2

然后就了解了 android 应用程序不能超过65K 的方法,优化看这里
,还有解决方法就是将不要的jar包删除!,然后clear project,rebuild project,再运行就好了!^_^

你可能感兴趣的:(android,android,jar,Studio)