这几天一直在学习如何使用隐藏的API,我知道如何使用classes.jar。
我将这个 classes.jar 作为库放在应用程序模块中。
当我运行这个应用程序时,我得到
"Error:Execution failed for task ':app:dexDebug'.> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_45\bin\java.exe'' finished with non-zero exit value 2"
我真的希望有人能帮助我。
build.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 19
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "com.android.wifidisplay"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile files('classes-dex2jar.jar')
}
最佳答案
关于java - 安卓工作室 : finished with non-zero exit value2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29890496/