build.gradle

transformClassesAndResourcesWithProguardForRelease FAILED

℡╲_俬逩灬. 提交于 2019-12-20 08:13:18
问题 I am trying to Build my Android application with Gradle in console. But getting below error about task ':app:transformClassesAndResourcesWithProguardForRelease': build.gradle: buildscript { repositories { jcenter() maven { url "https://jitpack.io" } } dependencies { classpath 'com.android.tools.build:gradle:2.2.3' classpath 'com.google.gms:google-services:3.0.0' } } allprojects { repositories { jcenter() maven { url "https://jitpack.io" } } } task clean(type: Delete) { delete rootProject

transformClassesAndResourcesWithProguardForRelease FAILED

倾然丶 夕夏残阳落幕 提交于 2019-12-20 08:12:37
问题 I am trying to Build my Android application with Gradle in console. But getting below error about task ':app:transformClassesAndResourcesWithProguardForRelease': build.gradle: buildscript { repositories { jcenter() maven { url "https://jitpack.io" } } dependencies { classpath 'com.android.tools.build:gradle:2.2.3' classpath 'com.google.gms:google-services:3.0.0' } } allprojects { repositories { jcenter() maven { url "https://jitpack.io" } } } task clean(type: Delete) { delete rootProject

Gradle Project Sync failed in Android Studio 2.3.1

落爺英雄遲暮 提交于 2019-12-20 08:00:13
问题 Upon reopening Android Studio after an improper shutdown, my gradle project sync failed and many errors like: "Failed to resolve: junit:junit:4.12" started showing up in the Event Log. Screenshot is given below. I tried the following things to no avail: Updated Android Studio to ver 2.3.1 and thus also the Gradle I also had error for "Plugin Error: required plugin "xyz" is disabled" so i deselected all the plugins showing errors from settings and reselected them which removed the error. Then

How to tell when gradle wrapper is on/off in Android Studio?

天大地大妈咪最大 提交于 2019-12-20 07:38:33
问题 I have twice now seen the message: Failed to apply plugin [id 'com.android.application'] Gradle version 2.1 is required. Current version is 2.2.1. If using the gradlewrapper, try editing the distributionUrl in /Users/Mac1/Downloads/u2020-dagger2 /gradle/wrapper/gradle-wrapper.properties to gradle-2.1-all.zip Another flavor is saying you really need 2.2, again with the suggestion to hunt down the gradle-wrapper.properties file. Either way, I really need to know when the wrapper is in use or

“:app:buildNative'. > execCommand == null!” when building my app in Android Studio and using NDK. What is causing this/how can I TS further?

旧巷老猫 提交于 2019-12-20 04:54:23
问题 This is the error I am getting when trying to build my android app in android studio. The app is using NDK which I think is what is causing the issue. I am very new with android studio and have been dealing with this issue for about 2 weeks now. After lots of googling, I don't understand what the issue is/how to TS this and don't have any idea what is going on. I also can't figure out how to use the debugger on the build.gradle file or how to see the value of System.env.ANDROID_NDK_HOME . I

How to execute maven plugins from gradle without having maven and java installed

泄露秘密 提交于 2019-12-20 04:50:30
问题 I need to execute a maven plugin on a system that does not have both maven and java installed and installing both of them on the system is not an option. While searching for the ways, I found out that by using gradle we can build executable binaries that does not even require gradle to get executed, which perfectly fits my situation :) . Is there any way to execute maven plugins by using gradle . Thanks in advance 回答1: Java is required for Maven and for Gradle too. You can use Maven Wrapper

Getting “more than one library with package name 'com.google.android.gms'” when running wear module

烂漫一生 提交于 2019-12-20 04:42:23
问题 I'm adding a wear module to an app. (using this sample code as a reference) So I have 3 modules, each one depends on a version of com.google.android.gms:play-services: app - compile 'com.google.android.gms:play-services:6.1.11' wear - 'com.google.android.gms:play-services-wearable:6.5.+' shared - compile 'com.google.android.gms:play-services:6.1.11' When compiling the Wear module, I get this error: Error:Execution failed for task ':wear:processDebugResources'. Error: more than one library

MultiDex issue - Execution failed for task ':app:dexDebug'

≡放荡痞女 提交于 2019-12-20 04:22:14
问题 I face a problem while adding a line for Google Calendar API to build.gradle . Here is the error: UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]:65536 at com.android.dx.merge.DexMerger$6.updateIndex(DexMerger.java:502) at com.android.dx.merge.DexMerger$IdMerger.mergeSorted(DexMerger.java:277) at com.android.dx.merge.DexMerger.mergeMethodIds(DexMerger.java:491) at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:168) at com

Gradle Error : duplicate entry: com/android/volley/AuthFailureError.class [duplicate]

跟風遠走 提交于 2019-12-20 03:16:39
问题 This question already has answers here : duplicate entry: com/android/volley/AuthFailureError.class while compiling project in android studio (9 answers) Closed last year . I imported EBS Sdk in my project.Now gradle building is success but while running Error:Execution failed for task':app:transformClassesWithJarMergingForDebug'. > com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/android/volley/AuthFailureError.class** this exception occurs

Whats the meaning of “with” in gradle

非 Y 不嫁゛ 提交于 2019-12-20 02:56:33
问题 In the answer https://stackoverflow.com/a/35879150 there is a with in the last line: task gen (type: Jar) { description "Generates JAR without version number." archiveName = filename + ".jar" manifest {attributes 'Main-Class': mainFile} with jar } What is the exact meaning, and where is it documented? I couldn't find it in the gradle documentation and the with in groovy (http://groovy-lang.org/style-guide.html#_using_with_for_repeated_operations_on_the_same_bean) seems to be different. 回答1: