复制到APK xmlschema.dtd中的Android重复文件
错误:任务“:app:transformResourcesWithMergeJavaResForDebug”的执行失败 com.android.build.api.transform.TransformException:com.android.builder.packaging.DuplicateFileException:APK javax/servlet/resources/XMLSchema.dtd中复制的重复文件 我在APK许可证中复制的重复文件上找到了答案 但我的问题不同。所以如果有人有建议,请帮助我 渐变文件:复制到APK xmlschema.dtd中的Android重复文件,android,android-studio,duplicates,apk,Android,Android Studio,Duplicates,Apk,错误:任务“:app:transformResourcesWithMergeJavaResForDebug”的执行失败 com.android.build.api.transform.TransformException:com.android.builder.packaging.DuplicateFileException:APK javax/servlet/resources/XMLSchema.dtd中复制的重复文件 我在APK许可证中复制的重复文件上找到了答案 但我的问题不同。所以如果有
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
defaultConfig {
applicationId "com.guptavishal1291.youtubefreesub"
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'
}
}
configurations.all {
resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9'
}
}
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'
exclude module: 'httpclient' //by artifact name
exclude group: 'org.apache.httpcomponents' //by group
exclude group: 'org.apache.httpcomponents', module: 'httpclient' //by both name and group
})
compile group: 'com.google.api-client', name: 'google-api-client-extensions', version: '1.6.0-beta'
compile files('libs/YouTubeAndroidPlayerApi.jar')
compile 'com.android.support:appcompat-v7:25.3.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.google.firebase:firebase-auth:10.2.0'
compile 'com.google.android.gms:play-services-auth:10.2.0'
compile 'com.google.apis:google-api-services-youtube:v3-rev183-1.22.0'
compile 'com.google.api-client:google-api-client:1.22.0'
compile 'com.google.oauth-client:google-oauth-client-jetty:1.22.0'
testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
我的情况与其他人不同,他们在APK javax/servlet/resources/XMLSchema.dtd中复制的license.txt重复文件方面存在问题。请帮助我解决此问题,因为我无法继续我的项目。如果您希望任何其他代码进行检查,请询问我,我将提供清理和重建或使缓存无效或重新启动的方法。我的情况与其他代码不同,他们在APK javax/servlet/resources/XMLSchema.dtd中复制的license.txt重复文件方面存在问题。请帮助我解决此问题,因为我无法继续我的项目。如果您希望任何其他代码检查,请询问我,我将提供清理和重建或使缓存无效并重新启动的方法
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
defaultConfig {
applicationId "com.guptavishal1291.youtubefreesub"
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'
}
}
configurations.all {
resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9'
}
}
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'
exclude module: 'httpclient' //by artifact name
exclude group: 'org.apache.httpcomponents' //by group
exclude group: 'org.apache.httpcomponents', module: 'httpclient' //by both name and group
})
compile group: 'com.google.api-client', name: 'google-api-client-extensions', version: '1.6.0-beta'
compile files('libs/YouTubeAndroidPlayerApi.jar')
compile 'com.android.support:appcompat-v7:25.3.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.google.firebase:firebase-auth:10.2.0'
compile 'com.google.android.gms:play-services-auth:10.2.0'
compile 'com.google.apis:google-api-services-youtube:v3-rev183-1.22.0'
compile 'com.google.api-client:google-api-client:1.22.0'
compile 'com.google.oauth-client:google-oauth-client-jetty:1.22.0'
testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'