Tag: gradle

Android studio add external project to build.gradle

I have a sample project, with the following setup: /root + Pure Java Lib + Android Test Lib + Android Test Project Where the ‘Test Project‘ is dependent on the ‘Test Lib‘, and the last depends on the ‘Pure Java Lib‘ Compiling the project and launching this setup works just fine. I’m now thinking about […]

“aapt” IOException error=2, No such file or directory” why can't I build my gradle on jenkins?

I have a little problem. The Problem: I am trying to build a gradle of my Android Project on Jenkins and now I am standing on this problem i can’t resolve. During the Building I have this Error message: :Client:mergeDebugResources /var/lib/jenkins/workspace/LMA-Client/Client/build/exploded-aar/com.google.android.gms/play-services/3.1.59/res/drawable-hdpi/common_signin_btn_text_focus_light.9.png: Error: Cannot run program “/opt/android-sdk/build-tools/19.0.1/aapt”: java.io.IOException: error=2, No such file or directory :Client:mergeDebugResources FAILED […]

'dependencies' cannot be applied to '(groovy.lang.Closure)'

I am unable to fix this error: dependencies cannot be applied to ‘(groovy.lang.Closure) This is my gradle file: buildscript { repositories { maven { url ‘http://download.crashlytics.com/maven’ } } dependencies { classpath ‘com.crashlytics.tools.gradle:crashlytics-gradle:1.+’ } } apply plugin: ‘android’ apply plugin: ‘crashlytics’ repositories { maven { url ‘http://download.crashlytics.com/maven’ } } dependencies { compile fileTree(dir: “$buildDir/native-libs”, include: ‘native-libs.jar’) […]

How to update gradle in android studio

I installed Android Studio 0.1.9. Today I got and update to version 0.2 and of course I updated. After the installation I restarted Android Studio but now I get this message: Project is using an old version of the Android Gradle plug-in. The minimum supported version is 0.5.0. Please update the version of the dependency […]

Java finished with non-zero exit value 2 – Android Gradle

I’m getting this error executing my Android app (I cleaned it and then built it, but the error is still present) Sync: OK Make Project: OK Clean: OK Run: Error Error:Execution failed for task ‘:app:dexDebug’ .com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘C:\Program Files\Java\jdk1.7.0_25\bin\java.exe” finished with non-zero exit value 2 My gradle file: apply plugin: ‘com.android.application’ android { […]

Android studio Gradle icon error, Manifest Merger

I keep seeing this message and not sure how to solve it for good. Error:(43, 9) Attribute application@icon value=(@drawable/new_app_icon) from AndroidManifest.xml:43:9 is also present at com.github.erizet.signala:signala-longpolling:0.20:7:18 value=(@drawable/ic_launcher) Suggestion: add ‘tools:replace=”android:icon”‘ to <application> element at AndroidManifest.xml:40:5 to override :OpenBook:processDebugManifest FAILED Error:Execution failed for task ‘:OpenBook:processDebugManifest’. > Manifest merger failed with multiple errors, see logs Tried adding […]

Android Gradle Apache HttpClient does not exist?

I am trying to convert an IntelliJ project to the Gradle system of Android Studio but I am running into errors with Apache HttpClient? Am I missing something, the errors I am getting are as follows: Error:(10, 30) error: package org.apache.http.client does not exist Error:(11, 30) error: package org.apache.http.client does not exist Error:(12, 37) error: […]

Android Studio suddenly cannot resolve symbols

Android Studio 0.4.2 was working fine and today I opened it and almost everything was red and the auto-completion had stopped working. I look at the imports and AS seems to be telling me it can’t find android.support.v4 all of a sudden (offering me the option to remove the unused imports). (android.support.v7 seems to be […]

com.android.build.transform.api.TransformException

i am trying to integrate google sign in , in my app,i added these libraries: compile ‘com.google.android.gms:play-services-identity:8.1.0’ compile ‘com.google.android.gms:play-services-plus:8.1.0’ also add this to project build gradle: classpath ‘com.google.gms:google-services:1.4.0-beta3’ also add plugin to app build gradle: apply plugin: ‘com.google.gms.google-services’ then add required permissions but when i try to run my app , received this error: Error:Execution […]

Android Studio Gradle Configuration with name 'default' not found

I am having problems compiling my app with Android Studio (0.1.5). The app uses 2 libraries which I have included as follows: settings.gradle include ‘:myapp’,’:library’,’:android-ColorPickerPreference’ build.gradle buildscript { repositories { mavenCentral() } dependencies { classpath ‘com.android.tools.build:gradle:0.4’ } } apply plugin: ‘android’ dependencies { compile files(‘libs/android-support-v4.jar’) compile project(‘:library’) compile project(‘:android-ColorPickerPreference’) } android { compileSdkVersion 17 buildToolsVersion […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.