[英]Missing artifact com.android.support:appcompat-v7:jar:23.0.1 in Eclipse with a Java project
[英]I am getting the error' compile 'com.android.support:design:23.0.1' compile 'com.android.support:appcompat-v7:23.0.1'
Below is my build.gradle
如果我生成一個簽名的apk,它給我以下錯誤
“錯誤:任務':app:transformClassesWithDexForRelease'的執行失敗。
com.android.build.api.transform.TransformException:com.android.ide.common.process.ProcessException:java.util.concurrent.ExecutionException:com.android.dex.DexException:多個dex文件定義了Lcom / google / zxing /集成/安卓/ IntentIntegrator;”
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "26.0.0"
defaultConfig {
applicationId "com.example.funanindou.grocerylist"
minSdkVersion 19
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:26.+'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
//compile 'com.android.zxing:core:3.2.0'
compile 'com.journeyapps:zxing-android-embedded:3.2.0@aar'
testCompile 'junit:junit:4.12'
}
請協助我如何解決此錯誤
好像您兩次包含com.journeyapps:zxing-android-embedded
庫一樣,您是否還將其中的一個jar保存在lib文件夾中?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.