build.gradle

Error:Execution failed for task ':ProjectName:mergeDebugResources'. > Crunching Cruncher *some file* failed, see logs

冷暖自知 提交于 2019-11-27 01:47:33
I have this error when trying to make a module of a project apply plugin: 'com.android.library' android { compileSdkVersion 17 buildToolsVersion "19.1.0" defaultConfig { minSdkVersion 8 targetSdkVersion 8 } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' } } } dependencies { compile files('libs/sdk.jar') compile files('libs/ads-lib.jar') compile project(':google-play-services_lib') compile files('libs/hdvdecoderandroid.jar') } How can i fix this error? Edit Here is my logs file, when i try to build it in command line

Error converting bytecode to dex: Cause: java.lang.RuntimeException: Exception parsing classes - Android studio 2.0 beta 6

孤街醉人 提交于 2019-11-27 01:20:21
问题 I updated to the last version of Android studio 2.0 Beta 6 with the gradle : dependencies { classpath 'com.android.tools.build:gradle:2.0.0-beta6' } The app works perfectly fine on emulator and devices I tested every thing and it works fine. I got many errors only when I try to Generate Signed APK, I got some errors in dependencies, all of them solved when i excluded vector drawable, vector animate drawable and Support-v4 library Now i dont have any dependencies error. now my gradle.build for

How to download javadocs and sources for jar using Gradle 2.0?

空扰寡人 提交于 2019-11-27 01:13:57
问题 I am using Gradle 2.0. What should I write in build.gradle so that the javadocs and sources are also downloaded along with the jars? 回答1: Add the javadoc or sources classifies as dependencies: dependencies { compile "commons-codec:commons-codec:1.10:sources" compile "commons-codec:commons-codec:1.10:javadoc" } 回答2: I guess your question is related to a dev workspace, here are links explaining how to add the required configuration in Gradle using the IDEs' plugins: For Eclipse: apply plugin:

Install gradle for using in cordova build android

北城余情 提交于 2019-11-27 01:09:37
问题 I have installed cordova and android sdk on linux mint 17, and downloaded gradle 2.4 (bin) and extracted it and set path to it, now I can get gradle -v from terminal, its ok, but when i want to build cordova : cordova build it starts to download gradle 2.2.... how i can set it to use current gradle 2.4 insteed downloading older version? gradle -v ------------------------------------------------------------ Gradle 2.4 ------------------------------------------------------------ Build time:

Android Studio gradle doesn't compile the specified version

你说的曾经没有我的故事 提交于 2019-11-27 01:06:26
问题 I've been developing this small project for some days now but suddenly today, Android Studio started to give me this error Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than version 14 declared in library com.android.support:support-v4:21.0.0-rc1 I understood that it is because it's trying to compile the library of Android-L. The version I want it to compile is the old version but it won't. It keeps giving

resValue gradle error: Unsupported type “String” in “generated.xml”

若如初见. 提交于 2019-11-27 00:52:04
问题 A few weeks ago I posted a question How to override resources depending on buildType. And just yesterday there was a gradle plugin release for android. Based on this post on G+ I decided to write this question. The problem I have described in detail: I want to create some resource values depending on the buildType , but this doesn't work properly: The file "generated.xml" will be only created if I make a complete build over the command line: gradlew build But I also get an error by building

Out of memory issue after updating buildToolsVersion '23.0.1' in Android studio

只愿长相守 提交于 2019-11-27 00:25:48
问题 I am getting out of memory issue very often after updating buildToolsVersion '22.0.1' to buildToolsVersion '23.0.1' I am really confused and don't know how to solve this issue, since this error showing only with buildTools version 23.0.1 . Whereas it is working fine when I change it to 22.0.1 . Please help me. I am posting the error which I am getting as follows, Uncaught translation error: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space Uncaught

Conflict with dependency 'com.android.support:support-annotations'. Resolved versions for app (23.1.0) and test app (23.0.1) differ

…衆ロ難τιáo~ 提交于 2019-11-27 00:01:00
When building I get the following error: Conflict with dependency 'com.android.support:support-annotations'. Resolved versions for app (23.1.0) and test app (23.0.1) differ. These are my gradle dependencies dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile 'com.android.support:support-v4:23.1.0' compile 'com.android.support:appcompat-v7:23.1.0' compile 'com.android.support:design:23.1.0' compile 'com.android.support:cardview-v7:23.1.0' compile 'com.android.support:recyclerview-v7:23.1.0' compile 'com.squareup.retrofit:retrofit:1.9.0' compile 'com.squareup.okhttp:okhttp:2

DELETE_FAILED_INTERNAL_ERROR Error while Installing APK

家住魔仙堡 提交于 2019-11-26 23:29:27
I am using Android Studio 2.2 Preview. I am facing the issue Failure: Install failed invalid apk Error: While installing apk, I have made changes in build.gradle but could not retrack it, please suggest me solution??? Amir Android studio mac/windows/linux: Steps in together (mac): Android Studio > Preferences > Build, Execution, Deployment > Instant Run > Uncheck : Enable Instant Run Steps in together (windows & linux): File > Settings > Build, Execution, Deployment > Instant Run > Uncheck : Enable Instant Run Steps in Detail : Steps 1: Studio > Preferences (for windows & linux got to File >

Multiple dex files define Landroid/support/v4/ in android studio

送分小仙女□ 提交于 2019-11-26 23:11:40
问题 I can integrate (add & work) with many libraries . But as for ActionBarSherlock library, I have so many problems with it. First Issue is the popular issue Multiple dex files define , I know The duplicated android-support-v4.jar causes it, but I can not solve this issue now : Error:Execution failed for task ':fitness:dexDebug'. Error Code: 2 Output: UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice