当我使用这个'依赖'时,一切都很好.该应用运行.
应用程序依赖项:
dependencies {
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.android.support:design:23.0.1'
compile 'com.android.support:recyclerview-v7:23.0.1'
compile 'org.jsoup:jsoup:1.7.2'
compile 'com.mcxiaoke.volley:library:1.0.19'
}
Run Code Online (Sandbox Code Playgroud)
但是当我在这个应用程序中添加一个java模块依赖项时,它会抛出错误:
错误:任务':app:dexDebug'的执行失败.com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:进程'命令'D:\ Java\jdk1.8.0_45\bin\java.exe''以非零退出值结束1
像这样
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "three.com.materialdesignexample"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile project(':securitycode')
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.android.support:design:23.0.1'
compile 'com.android.support:recyclerview-v7:23.0.1'
compile 'org.jsoup:jsoup:1.7.2'
compile 'com.mcxiaoke.volley:library:1.0.19'
}
Run Code Online (Sandbox Code Playgroud)
我的Java模块依赖项什么都没有
apply plugin: 'java'
dependencies { …Run Code Online (Sandbox Code Playgroud)