-1
我添加了一個新的圖書館,以我的Android Studio項目的外部庫和失敗,當我運行它,現在我收到此錯誤:搖籃建立時,我輸入
UNEXPECTED TOP-LEVEL ERROR:
Execution failed for task ':app:preDexDebug'.
>com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command' /Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/bin/java" finished with non-zero value 3
BUILD FAILED
Total time:17 mins 33.841 secs
1 error
0 warning
我在app /庫添加的庫。我用右鍵單擊並添加爲一個庫。 add as library
我讀這是可能的,如果我把外部庫,而不是項目/應用程序/庫庫,但我不知道怎麼做了修正這個錯誤。 External libraries
這是我的gradle構建文件:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.example.nameht.pruebas"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.2.0'
compile files('libs/symja-2016-03-07.jar')
}