Duplicate files copied in APK META-INF/DEPENDENCIES
2024-10-20 21:14:14
在app的目录下找到build.gradle 这个文件,在android标签的最后面加入以下信息:
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
完整的信息如下:
apply plugin: 'com.android.application' android {
compileSdkVersion 23
buildToolsVersion "23.0.2" defaultConfig {
applicationId "com.server.servers"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
} packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
} dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
}
最新文章
- Spring中servletFileUpload完成上传文件以及文本的处理
- BootStrap 的modal 中使用typeahead
- 自动化工具selenium
- 运行开源项目,报错Error:(48, 37) 错误: -source 1.6 中不支持 diamond 运算符,请使用-source 7或者更高版本已启用diamond运算符
- iOS开发零基础--Swift篇 循环
- python 2.X
- udp 不需要 listen
- #292 (div.2) D.Drazil and Tiles (贪心+bfs)
- 003.android资源文件剖析(Resources)
- 【spring源代码分析】--Bean的解析与注冊
- asp.net 一般处理程序session 为 null
- acm课程练习2--1001
- 根据html生成Word文件,包含图片
- 初学者福音——10个最佳APP开发入门在线学习网站
- python写zip破解器
- ●BZOJ 4237 稻草人
- box-sizing position
- Android activity创建三部曲
- Android测试(四):Instrumented 单元测试
- GMA Round 1 数列求单项
热门文章
- Leetcode总结之Union Find
- filter 中用spring StopWatch 监控请求执行时间
- 【spring cloud】spring cloud服务发现注解之@EnableDiscoveryClient与@EnableEurekaClient
- 百科知识 hta文件如何打开
- Flex4_Tree组件1(添加、删除、展开、关闭、右键菜单)
- 分享ArcGIS Server 10.0修复安装心得
- mysql生产环境____主从同步修复案例
- php实现类似淘宝最近浏览商品的功能模型代码
- Selenium学习(一)环境搭建
- cocos2dx-3.1 接入多盟广告sdk+Android (2)