Tag: gradle

Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to

today I just imported a sample app from Android SDK as a module in my project (analytics) and suddenly I got this gradle error when I try to sync it: Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE envrinment variable to… This is my app gradle file: apply plugin: […]

Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat

If I run gradle assembleDebug from the command line, I am suddenly getting this error: UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dx.util.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl; at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:592) at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:550) at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:531) at com.android.dx.merge.DexMerger.mergeDexBuffers(DexMerger.java:168) at com.android.dx.merge.DexMerger.merge(DexMerger.java:186) at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:300) at com.android.dx.command.dexer.Main.run(Main.java:232) at com.android.dx.command.dexer.Main.main(Main.java:174) at com.android.dx.command.Main.main(Main.java:91) If I grep for v4 I see two files inside my build folder. […]

Unable to instantiate application com.android.tools.fd.runtime.BootstrapApplication ?Android

I updated my Android Studio to version 2.0. But I had a problem, I don’t know why? The important error info: Unable to instantiate application com.android.tools.fd.runtime.BootstrapApplication: java.lang.IllegalStateException: java.lang.ClassNotFoundException: com.eallcn.rentagent.MyDebugEallApplication I searched a long time, But I didn’t find the right answer you can see the link At the same time when I click File->Project structure […]

How to set gradle home while importing existing project in Android studio

How to set gradle home while importing existing project in Android studio. While trying to import I need to set up this path.

Building and running app via Gradle and Android Studio is slower than via Eclipse

I have a multi-project (~10 modules) of which building takes about 20-30 seconds each time. When I press Run in Android Studio, I have to wait every time to rebuild the app, which is extremely slow. Is it possible to automate building process in Android Studio? Or do you have any advice on how to […]

Android Studio – no debuggable applications

I tried to debug a release version of my Android application but Android Studio failed to attach a debugger. (It could not find Android procces of my running application). Under devices console, there was only a message: No debuggable applications

How to manually include external aar package using new Gradle Android Build System

I’ve been experimenting with the new android build system and I’ve run into a small issue. I’ve compiled my own aar package of ActionBarSherlock which I’ve called ‘actionbarsherlock.aar’. What I’m trying to do is actually use this aar to build my final APK. If I include the whole ActionBarSherlock library as an android-library module to […]

Gradle DSL method not found: 'runProguard'

I get an error after updating from my last project. Not a problem in my code but I’m having trouble with build.gradle. How can I fix it? build.gradle code here: apply plugin: ‘android’ android { compileSdkVersion 21 buildToolsVersion ‘20.0.0’ packagingOptions { exclude ‘META-INF/DEPENDENCIES’ exclude ‘META-INF/LICENSE’ exclude ‘META-INF/LICENSE.txt’ exclude ‘META-INF/license.txt’ exclude ‘META-INF/NOTICE’ exclude ‘META-INF/NOTICE.txt’ exclude ‘META-INF/notice.txt’ […]

Android Studio: Add jar as library?

I’m trying to use the new Android Studio but I can’t seem to get it working correctly. I’m using the Gson library to serialize/deserialize JSON-objects. But the library somehow isn’t included in the build. I created a new project with just a MainActivity. Copied gson-2.2.3.jar in the /libs folder and added it as a library […]

How to create a release signed apk file using Gradle?

I would like to have my Gradle build to create a release signed apk file using Gradle. I’m not sure if the code is correct or if I’m missing a parameter when doing gradle build? This is some of the code in my gradle file: android { … signingConfigs { release { storeFile file(“release.keystore”) storePassword […]

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