Tag: android-gradle

google play services 8.4.0 – classes.jar not found – android studio

I am getting this error when I Run or Debug the app but when I build or clean my project there are no errors. It sounds strange but I’ve wasted my 4-5 hours searching for this but nothing was helpful. Error: Error:Execution failed for task ‘:app:compileDebugJavaWithJavac’.> java.io.FileNotFoundException: C:\Users\Saeed Jassani\Downloads\AppName\app\build\intermediates\exploded-aar\com.google.android.gms\play-services\8.4.0\jars\classes.jar (The system cannot find the path […]

Could not find com.android.support:support-v4:22.0.0. after SDK update

After the sdk update im not able to create a hello world application. My build.gradle looks like this apply plugin: ‘com.android.application’ android { compileSdkVersion 22 buildToolsVersion “22.0.1” defaultConfig { applicationId “com.coders.yo” minSdkVersion 11 targetSdkVersion 22 versionCode 1 versionName “1.0” } buildTypes { release { runProguard false proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.pro’ } } } dependencies { compile […]

Generating unsigned, release apk with Android Studio

I need to generate an unsigned, release APK (where someone else will then sign it and release it to the store- with the someone else handling the keys and everything else). My problem is that Android Studio throws an error whenever I try to build: app-flavorUnsigned-release-unsigned.apk is not signed. Please configure the signing information for […]

Gradle DSL method not found: 'flavorGroups()'

I’m trying to create a ndk project with android studio according this tutorial and I get this error when I try to sync my gradle: Gradle DSL method not found: ‘flavorGroups()’ I’m using gradle 2.2.1, with android studio 1.0.2. Here is a part of my gradle file: defaultConfig.versionCode = 1 flavorGroups “abi” productFlavors { x86 […]

android studio: gradle dependency error

In the following build.gradle, I added the configuration section to avoid double inclusion of support libraries. Support libraries are used in the main project and in the dependent projects like facebook sdk. Without the configuration section, I get “UNEXPECTED TOP-LEVEL EXCEPTION”. Adding that configuration makes the error go away and the app all works fine. […]

Executor Singleton not started after upgrading android studio

after i upgrade android studio and i opened it, i get this error : Information:Gradle tasks [:app:generateDebugSources, :app:generateDebugTestSources] :app:preBuild :app:preDebugBuild :app:checkDebugManifest :app:preReleaseBuild :app:prepareComAndroidSupportAppcompatV72211Library UP-TO-DATE :app:prepareComAndroidSupportSupportV42211Library UP-TO-DATE :app:prepareComAstuetzPagerslidingtabstrip101Library UP-TO-DATE :app:prepareComCrashlyticsSdkAndroidAnswers120Library UP-TO-DATE :app:prepareComCrashlyticsSdkAndroidBeta112Library UP-TO-DATE :app:prepareComCrashlyticsSdkAndroidCrashlytics224Library UP-TO-DATE :app:prepareComGithubHotchemiAndroidRate043Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServices730Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesAds730Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesAnalytics730Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesAppindexing730Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesAppinvite730Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesAppstate730Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesBase730Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesCast730Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesDrive730Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesFitness730Library […]

RxJavaPlugins Error Didn't find class “com.google.devtools.build.android.desugar.runtime.ThrowableExtension”

After upgrading Android Studio 3.0 Beta 1 getting the following error. When I downgraded the error disappeared. Studio Build: Android Studio 3.0 Beta 1 Version of Gradle Plugin: ‘com.android.tools.build:gradle:3.0.0-beta1′ Version of Gradle:.0.0-beta1 Version of Java: 8 OS: MacOSX java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/devtools/build/android/desugar/runtime/ThrowableExtension; at io.reactivex.plugins.RxJavaPlugins.onError(RxJavaPlugins.java:364) at io.reactivex.android.schedulers.HandlerScheduler$ScheduledRunnable.run(HandlerScheduler.java:113) at android.os.Handler.handleCallback(Handler.java:751) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6121) […]

Android Gradle adding external library and nested external libraries to a project

How do i add an external library and nested external libraries to an android project? My project structure (Not allowed to change) Apps/ App1/ build.gradle settings.gradle libraries/ library1/ build.grade settings.gradle library2/ build.grade settings.gradle library3/ build.grade settings.gradle library4/ build.grade settings.gradle App1 App1/build.gradle buildscript { … } apply plugin: ‘android’ dependencies { compile fileTree(dir: ‘libs’, include: ‘*.jar’) […]

android studio 0.4.2 + gradle + Android Source code

I’m trying to attach the android source code to my gradle project using Android Studio. The problem is that the SDK tab does not appear if you are using a gradle project and I can not attach the source code. I tried with version 0.4.3 and does not work. Any idea or work arround? EDIT: […]

What does “multiDexEnabled true” mean?

What is meant by “multiDexEnabled true” in Android gradle. Why do we use this? What is the effect if it is enabled?

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