You can ignore those files in your build.gradle
来源:互联网 发布:youtube视频软件 编辑:程序博客网 时间:2024/05/14 10:06
Information:Gradle tasks [:app:assembleDebug]
:app:preBuild
:app:compileDebugNdk UP-TO-DATE
:app:preDebugBuild
:app:checkDebugManifest
:app:preReleaseBuild
:app:prepareComAndroidSupportSupportV42000Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:compileDebugJava UP-TO-DATE
:app:preDexDebug
Warning:Ignoring InnerClasses attribute for an anonymous inner class
(com.tencent.mm.sdk.b.b) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
:app:dexDebug
:app:processDebugJavaRes UP-TO-DATE
:app:validateDebugSigning
:app:packageDebug
Error:duplicate files during packaging of APK /Users/luffy/AndroidStudioProjects/sporting-android1/app/build/outputs/apk/app-debug-unaligned.apk
Path in archive: META-INF/NOTICE.txt
Origin 1: /Users/luffy/AndroidStudioProjects/sporting-android1/app/libs/httpclient-cache-4.2.1.jar
Origin 2: /Users/luffy/AndroidStudioProjects/sporting-android1/app/libs/httpmime-4.2.1.jar
You can ignore those files in your build.gradle:
android {
packagingOptions {
exclude 'META-INF/NOTICE.txt'
}
}
Error:Execution failed for task ':app:packageDebug'.
> Duplicate files copied in APK META-INF/NOTICE.txt
File 1: /Users/luffy/AndroidStudioProjects/sporting-android1/app/libs/httpclient-cache-4.2.1.jar
:app:preBuild
:app:compileDebugNdk UP-TO-DATE
:app:preDebugBuild
:app:checkDebugManifest
:app:preReleaseBuild
:app:prepareComAndroidSupportSupportV42000Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources UP-TO-DATE
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:compileDebugJava UP-TO-DATE
:app:preDexDebug
Warning:Ignoring InnerClasses attribute for an anonymous inner class
(com.tencent.mm.sdk.b.b) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
:app:dexDebug
:app:processDebugJavaRes UP-TO-DATE
:app:validateDebugSigning
:app:packageDebug
Error:duplicate files during packaging of APK /Users/luffy/AndroidStudioProjects/sporting-android1/app/build/outputs/apk/app-debug-unaligned.apk
Path in archive: META-INF/NOTICE.txt
Origin 1: /Users/luffy/AndroidStudioProjects/sporting-android1/app/libs/httpclient-cache-4.2.1.jar
Origin 2: /Users/luffy/AndroidStudioProjects/sporting-android1/app/libs/httpmime-4.2.1.jar
You can ignore those files in your build.gradle:
android {
packagingOptions {
exclude 'META-INF/NOTICE.txt'
}
}
Error:Execution failed for task ':app:packageDebug'.
> Duplicate files copied in APK META-INF/NOTICE.txt
File 1: /Users/luffy/AndroidStudioProjects/sporting-android1/app/libs/httpclient-cache-4.2.1.jar
File 2: /Users/luffy/AndroidStudioProjects/sporting-android1/app/libs/httpclient-cache-4.2.1.jar
因为 httpclient-cache-4.2.1.jar 和 httpmime-4.2.1.jar 包含了同样的文件。
根据提示在 build.gradle 里面增加:
- android {
- packagingOptions {
- exclude 'META-INF/NOTICE.txt'
- }
- }
0 0
- You can ignore those files in your build.gradle
- You can ignore those files in your build.gradle
- You can ignore those files in your build.gradle
- XML Comments Let You Build Documentation Directly From Your Visual Studio .NET Source Files
- Ignore Files and Directories in Subversion
- git ignore已经checked in files
- Customizing Your Build With Gradle
- Customizing Your Build With Gradle
- can you see your future?
- Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one project.
- Unfortunately you can't have non-Gradle Java modules and Android-Gradle modules in one project.
- 51 You have not configured Oracle Managed Files (OMF) in your database. You do not want to scan the
- Solution to “Commit your changes or stash them before you can merge” in Git
- Build your good habit in your office
- Gradle Build Variants for your android project
- 9 ways you can boost your memory
- 23 In Recovery Manager (RMAN), you are taking image copies of the data files of your production data
- Types of Applications You Can Build
- SQL Server 数据库安全
- UISearchBar
- html中head元素部分中嵌套定义的元素描述定义
- @property和@synthesize
- java NIO(四) 缓冲区——大端字节书序 小端字节顺序
- You can ignore those files in your build.gradle
- 枚举类型属性
- iscroll 部分android手机(如三星的)不能点击兼容问题
- ios内存管理总结
- 13种浪费生命的迹象
- SQL Server 开发指南
- Android中常用的布局
- Oracle通过sqlplus spool导出数据时异常
- 解读NoSQL数据库的四大家族