Error:Execution failed for task ':app:transformResourcesWithMergeJavaResFor解决方法(转)
来源:互联网 发布:mac截屏的快捷键是什么 编辑:程序博客网 时间:2024/06/01 13:55
解决办法如下:
在你的主项目的build.gradle工程里添加如下
packagingOptions {
exclude 'META-INF/LICENSE' exclude 'META-INF/NOTICE' }
整体build.gradle如下
apply plugin: 'com.android.application'apply plugin: 'com.neenbedankt.android-apt'apply plugin: 'com.getkeepsafe.dexcount'android { compileSdkVersion 24 buildToolsVersion "23.0.3" packagingOptions { exclude 'META-INF/LICENSE' exclude 'META-INF/NOTICE' } defaultConfig { minSdkVersion 14 targetSdkVersion 24 versionName "4.3.3" vectorDrawables.useSupportLibrary = true } sourceSets { lightningPlus.setRoot('src/LightningPlus') lightningLite.setRoot('src/LightningLite') } buildTypes { debug { minifyEnabled false shrinkResources false proguardFiles 'proguard-project.txt' } release { minifyEnabled true shrinkResources true proguardFiles 'proguard-project.txt' } } productFlavors { lightningPlus { buildConfigField "boolean", "FULL_VERSION", "true" applicationId "acr.browser.lightning" versionCode 88 } lightningLite { buildConfigField "boolean", "FULL_VERSION", "false" applicationId "acr.browser.barebones" versionCode 90 } } lintOptions { abortOnError true } packagingOptions { exclude '.readme' }}dexcount { includeClasses = false includeFieldCount = false printAsTree = true orderByMethodCount = true verbose = false}dependencies { // support libraries // html parsing for reading mode // event bus // dependency injection apt 'com.google.dagger:dagger-compiler:2.0.2' provided 'javax.annotation:jsr250-api:1.0' // view binding // permissions // proxy support // Use the following code to update the libnetcipher submodule // git submodule foreach git reset --hard // git submodule update --remote compile project(':NetCipher:libnetcipher') compile project(':Bonsai:library') compile project(':AnimatedProgressBar:library') // memory leak analysis debugCompile 'com.squareup.leakcanary:leakcanary-android:1.4' //releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.4' compile 'com.android.support:palette-v7:24.2.0' compile 'com.android.support:appcompat-v7:24.2.0' compile 'com.android.support:design:24.2.0' compile 'com.android.support:recyclerview-v7:24.2.0' compile 'com.android.support:support-v4:24.2.0' compile 'org.jsoup:jsoup:1.9.2' compile 'com.squareup:otto:1.3.8' compile 'com.google.dagger:dagger:2.0.2' compile 'com.jakewharton:butterknife:7.0.1' compile 'com.anthonycr.grant:permissions:1.1.2' compile 'net.i2p.android:client:0.8' compile 'com.firebase:firebase-client-android:2.3.1'}
阅读全文
0 0
- Error:Execution failed for task ':app:transformResourcesWithMergeJavaResFor解决方法(转)
- Error:Execution failed for task ':app:transformResourcesWithMergeJavaResFor解决方法
- Error:Execution failed for task ':app:prepareDebugAndroidTestDependencies'. > Dependency Error解决方法
- Error:Execution failed for task ':app:compileDebugNdk' 解决方法
- Error:Execution failed for task ':app:transformClassesWithDexForDebug'.解决方法
- 记录Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > 的解决方法
- Error:Execution failed for task ':app:buildInfoDebugLoader'. 解决方法
- 关于Error:Execution failed for task ':app:transformClassesWithDexForDebug'的解决方法
- Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.解决方法
- Error:Execution failed for task ':app:compileDebugJavaWithJavac' 根本解决方法
- android Error:Execution failed for task ':app:transformClassesWithJarMergingForRelease' 解决方法大全
- Error:Execution failed for task ':app:dexDebug'.
- Error:Execution failed for task ':app:compileDebugAidl'.
- Error:Execution failed for task ':app:packageDebug'.
- Error:Execution failed for task ':app:dexDebug'.
- Error:Execution failed for task ':app:processDebugResources'.
- Error:Execution failed for task ':app:transformClassesWithDexForDebug&#
- Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
- centos在yum install报错:Another app is currently holding the yum lock解决方法
- 多线程死锁以及解决方法
- java网络编程----------Socket实现客户端和服务器的连接
- 设计模式--观察者模式(五)
- day8 day9
- Error:Execution failed for task ':app:transformResourcesWithMergeJavaResFor解决方法(转)
- HDU4886 (8/600)
- 浅谈我的高考到程序员的生涯
- 使用 rqt_console 和 roslaunch(八)
- Java中使用Jedis操作Redis
- Java基础教程16-String的基本用法
- [leetcode]: 605. Can Place Flowers
- 测试opencv2.4.9中Mat3通道图像的灰度值存储方式
- 16级C++课程设计 题目1 “高校人员信息管理系统设计”