Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.
> com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK pom.xml
File1: /Users/michaelnares/Documents/TripMatcher2/app/libs/library_sliding.jar
File2: /Users/michaelnares/Documents/TripMatcher2/app/libs/roundedimageview.jar
Gibt es eine Möglichkeit, die pom.xml in Android Studio anzuzeigen? Ich kann nur Build.gradle sehen. Meine Top-Level-build.gradle ist wie folgt:Doppelte Dateien in pom.xml
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
classpath 'com.google.gms:google-services:3.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
Meine app-Ebene build.gradle ist wie folgt:
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "com.tripmatcher"
minSdkVersion 15
targetSdkVersion 25
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 'com.google.android.gms:play-services-auth:9.2.1'
// glide is added to load the g+ profile image. Ignore if you want
compile 'com.github.bumptech.glide:glide:3.7.0'
compile fileTree(include: ['*.jar'], dir: 'libs')
apply plugin: 'com.google.gms.google-services'
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:25.3.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
compile files('libs/facebook_sdk.jar')
compile files('libs/android-support-v4.jar')
}
Soweit ich sehen kann, sollte alles funktionieren.
Es gibt keine pom.xml, alles, was Sie sehen können, ist das build.gradle –
OK, gibt es eine andere Möglichkeit, dieses Problem zu lösen? –
Hat jemand herausgefunden, wie man das Problem lösen kann? – DroidDev