android异常 More than one file was found with OS independent path 'META-INF/XXX'
2017-11-09 10:10
537 查看
android 异常总结:一个文件在jar包中出现多次。
Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.
> More than one file was found with OS independent path 'META-INFXXX'
需要在app.gradle文件里面android节点下添加这样的代码
packagingOptions {
exclude 'META-INF/XXX'
exclude 'META-INF/XXX'
exclude 'META-INF/XXX'
exclude 'META-INF/XXX'
}
具体的修改位置
apply plugin: '
android {
compileSdkVersion 26
defaultConfig {
applicationId ""
minSdkVersion 15
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
packagingOptions {
exclude 'META-INF/XXXX'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.
> More than one file was found with OS independent path 'META-INFXXX'
需要在app.gradle文件里面android节点下添加这样的代码
packagingOptions {
exclude 'META-INF/XXX'
exclude 'META-INF/XXX'
exclude 'META-INF/XXX'
exclude 'META-INF/XXX'
}
具体的修改位置
apply plugin: '
android {
compileSdkVersion 26
defaultConfig {
applicationId ""
minSdkVersion 15
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
packagingOptions {
exclude 'META-INF/XXXX'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
相关文章推荐
- More than one file was found with OS independent path 'META-INF/DEPENDENCIES'
- More than one file was found with OS independent path 'META-INF/DEPENDENCIES'
- More than one file was found with OS independent path
- More than one file was found with OS independent path
- org.hibernate.HibernateException: More than one row with the given identifier was found: 116, for cl
- Hibernate:More than one row with the given identifier was found解决办法
- AIR A file found in a source-path can not have more than one externally visiable
- 【错误】More than one row with the given identifier was found: 1, for class:
- Android studio more than one library with package name 'xxx.xxx.mylibrary'
- HibernateException:More than one row with the given identifier was found: 1, for class....
- Hibernate:More than one row with the given identifier was found解决办法
- Found more than one concrete type for given DbContext Type (xxx.xxxx.xxx) define MultiTenancySideAttribute with Tenant
- Hibernate 级联查询: More than one row with the given identifier was found 报错
- more than one row with the given identifier was found
- More than one row with the given identifier was found 问题
- Invalid configuation file. File "**********" was created by a VMware product with more feature than this version of VMware Workstation and cannot be
- java.io.FileNotFoundException: class path resource [META-INF/xfire/services.xml] cannot be opened because it does not exist
- Grade 编译 Android 解决 Error:more than one library with package name
- eclipse 配置scala问题-More than one scala library found in the build path
- Error:A problem was found with the configuration of task ':app:packageRelease'. > File 'F:\AndroidSt