Tag: android-gradle

how to fix eror app\build\intermediates\res\merged\debug\values-v24\values-v24.xml

I get an error when I build a project. Error: Error:Execution failed for task ‘:app:processDebugResources’. > com.android.ide.common.process.ProcessException: Failed to execute aapt C:\Users\MR Maleki\Desktop\WhoIsBetter2\app\build\intermediates\res\merged\debug\values-v24\values-v24.xml Error:(4) Error retrieving parent for item: No resource found that matches the given name ‘android:TextAppearance.Material.Widget.Button.Colored’. Error:(3) Error retrieving parent for item: No resource found that matches the given name ‘android:TextAppearance.Material.Widget.Button.Borderless.Colored’. Error:(3) Error […]

Breakpoints not getting hit in Android Studio

I’m using Windows 7 and have recently switched from Eclipse to Android Studio. I am now having trouble debugging. Running Android Studio 0.8.6, I set up a completely default install, I create a default empty project, targeting the ICS SDK, using the new project wizard. I then put a breakpoint in onCreate, click on the […]

“The signing configuration should be specified in Gradle build scripts”… I did it

I have a big issue when I come to sign my application: I have set the signing configuration in accordance with the doc: signingConfigs { release { storeFile file(“lomapnew.keystore”) storePassword “myPassword” keyAlias “myAlias” keyPassword “Something….” } } But I still get this error message: “The signing configuration should be specified in Gradle build scripts”

How to set android app version by number of build in Jenkins?

Application is automatically building by jenkins after successful push, but version is always 1.0. Instead of “0” I want to insert number of corresponding build in jenkins: 1.119, 1.120, 1.121… That is my build.gradle file // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { mavenCentral() } […]

How to get a resource value in build.gradle?

The resValue method (or whatever it’s called) allows you to set a resource value in buildTypes or productFlavors. Is there a corresponding way to get a resource value that was set by resValue? It appears that productFlavors is evaluated before buildTypes, so a resValue set in buildTypes takes precedence. I want to append “Debug” to […]

Android Crashlytics ndk; values of NdkOut and NdkLibsOut in build.gradle

I have integrated Crashlytics, Fabric into my app, the sdk related crashes are reported successfully. For the ndk part, i have followed instructions from the blog; The Wait is Over: Launching Crashlytics for Android NDK, but the ndk crashes aren’t being reported. My doubt is, because other parts are sufficiently clear, i’m not providing the […]

Android Studio cannot import project: java.util.ArrayList cannot be cast to java.util.Map

When I’m trying to import my project through Android Studio I get this error. I have used gmaps in the project. How do I resolve this error? I’ve already re-installed Java and reset JAVA_HOME. I’ve also made sure Gradle is set up properly. 2013-12-23 11:13:35,448 [ 107774] WARN – nal.AbstractExternalSystemTask – Cause: java.util.ArrayList cannot be […]

Error after adding play-services library : ':app:transformClassesWithJarMergingForDebug'

My project was working perfectly with those libraries included: // Support libraries compile ‘com.android.support:support-v4:23.1.0’ compile ‘com.android.support:appcompat-v7:23.1.0’ compile ‘com.android.support:cardview-v7:23.1.0’ compile ‘com.android.support:recyclerview-v7:23.1.0’ // Other stuff compile ‘com.jakewharton:butterknife:7.0.1’ compile ‘com.squareup.picasso:picasso:2.5.2’ compile ‘com.google.code.gson:gson:2.3’ compile ‘com.squareup.retrofit:retrofit:1.9.0’ compile ‘com.afollestad:material-dialogs:’ compile ‘com.jpardogo.materialtabstrip:library:1.1.0’ compile ‘com.melnykov:floatingactionbutton:1.3.0’ compile ‘com.code-troopers.betterpickers:library:2.0.0’ compile ‘com.loopj.android:android-async-http:1.4.9’ compile ‘com.squareup.okhttp:okhttp:2.5.0’ compile ‘com.facebook.fresco:fresco:0.7.0’ now i tried to follow this tutorial: Set up a […]

Android Studio: Unexpected top level exception (finished with non-zero exit value 2..)

When i’m trying to debug my android app i’m getting the following error message: Error:Execution failed for task ‘:app:transformClassesWithDexForDebug’. com.android.build.transform.api.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/java” finished with non-zero exit value 2 The error first appeared on adding a new dependency. This is my gradle file compile ‘com.android.support:appcompat-v7:23.0.1’ compile ‘com.android.support:design:23.0.1’ compile ‘com.android.support:recyclerview-v7:23.0.1’ compile ‘com.google.dagger:dagger:2.0.1’ apt ‘com.google.dagger:dagger-compiler:2.0.1’ […]

Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found

I use the following library to add material design to my android project https://github.com/navasmdc/MaterialDesignLibrary But after importing it as a module, I get the following error. How can I fix it Error:(2, 0) Plugin with id ‘com.github.dcendents.android-maven’ not found.

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