Tag: android-gradle

How Do We Inherit Test Classes Across Android Library Modules?

I have an Android Studio project with two library modules: foo-module and bar-module. Each implements a library, with foo-module defining a strategy interface and bar-module depending upon foo-module and implementing such a strategy. foo-module has instrumentation tests (foo-module/src/androidTest/) to test its core code, using a stub strategy implementation, and bar-module should have its own instrumentation […]

ADB server didn't ACK on macOS

I am getting this error since two days ago when I updated my Android Studio to the latest stable version 2.3; the full error message I am getting from Gradle Console is: 07:59:59 E/adb: error: could not install *smartsocket* listener: Address already in use 07:59:59 E/adb: ADB server didn’t ACK 07:59:59 E/adb: * failed to […]

How to resolve the Android Studio error where it cannot find the project's Manifest file?

I am migrating my legacy project from Eclipse to Android studio. I did the following things: Export and generate gradle build files in eclipse Imported the Gradle.build file in Android Studio Changed my gradle version dependencies to: classpath ‘com.android.tools.build:gradle:0.9.+’ My root folder of the project contains 3 library projects: Actionbarsherlock, Authbahn and library. My root […]

Warning:Ignoring Android API artifact com.google.android:android:

Android Studio this morning added external libraries to my project. Now when building my project I get Warning:Ignoring Android API artifact com.google.android:android: for debug Does anyone know what this means?

Jenkins giving The SDK Directory doesn't exist

I’m trying to setup continuous integration with Jenkins on an android gradle project When I build it, I get the following error: [Android Gradle Jenkins Experiment2] $ “/Users/Shared/Jenkins/Home/workspace/Android Gradle Jenkins Experiment2/gradlew” build FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ‘:app’. The SDK directory ‘/Users/chaz/Library/Android/sdk’ does not exist. […]

Why do I get this error when I add the Google Translate client library to my Android project?

I’m trying to add the Google Translate client library to my Android project per these instructions, which tells me to add this line to my dependencies in build.gradle of my library project (which is a dependency of my app project): compile group: ‘com.google.cloud’, name: ‘google-cloud-translate’, version: ‘0.4.0’ But when I do, I get this error: […]

Is it safe to delete the .gradle folder in Android Studio?

I have an old project that am working at, I noticed that the .gradle folder has too many subfolders for each distribution of gradle I’ve changed in the past, is it safe to delete the old versions subfolders?

MultiDex support in Android application error

I want to use Android L compat libs. after adding the relevant code to gradle, I get the error: Error Code: 2 Output: objc[36290]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined. UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: method ID not in [0, 0xffff]: 65536 […]

How to include dependencies into .aar library?

I’m using Android Studio 1.4 I have a module in my project that’s having next dependencies in build.gradle: dependencies { provided fileTree(dir: ‘libs’, include: [‘*.jar’]) provided ‘junit:junit:4.12’ apply plugin: ‘com.google.gms.google-services’ provided ‘org.apache.directory.studio:org.apache.commons.io:2.4’ provided ‘com.google.android.gms:play-services:8.1.0’ provided ‘com.fasterxml.jackson.core:jackson-databind:2.2.0’ provided ‘com.fasterxml.jackson.core:jackson-core:2.2.0’ provided ‘com.fasterxml.jackson.core:jackson-annotations:2.2.0’ } After building the projectn and syncing gradle, I getting lib-release.aar at my module/build/ouputs/aar folder. […]

AndroidAnnotations cannot find symbol class

I’m using AndroidAnnotations in an Android Studio gradle project. I currently get error output from AA during compilation that says: cannot find symbol class MyActivity_ The error output does not prevent building the application – its not really a compile error because the class is there, it seems that it is just an unfortunate timing […]

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