Android – Error:Execution failed for task ':app:mergeDebugResources'

please help me! here is error says: Error:Execution failed for task ‘:app:mergeDebugResources’. Error: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: my app gradle is : apply plugin: ‘com.android.application’ android { compileSdkVersion 25 buildToolsVersion “25.0.1” packagingOptions { exclude ‘META-INF/NOTICE’ // will not include NOTICE file exclude ‘META-INF/LICENSE’ // will not include LICENSE file } defaultConfig { applicationId “com.aku.ec2ainun.stepondesign” minSdkVersion 18 targetSdkVersion […]

Equivalent of Eclipse's “Problems” view on Android Studio

This question already has an answer here: Where is the warnings view in Android Studio? 6 answers

Android EditText: Done instead of Enter or Word Wrap instead of Multi Line

I have a multiple line EditText that does not permit line returns. Right now I am replacing returns with some spaces as soon as they click save. Is there any way I can replace the on screen enter button with a Done button? (like it is for single line EditText) I am aware that I […]

Android – IllegalStateException: map has zero size

I’m a novice android programmer. Let me give some context. My project uses ActionBarSherlock. I have an activity (Activity1) that contains two fragments – a SherlockListFragment and a SherlockFragment containing a google maps MapView (essentially a MapFragment). Search results are displayed in the list fragment and the map fragment, and an action bar options button […]

How to access Letter Recognizer API in Android?

I am creating a gesture application. In the Gesture class docs http://developer.android.com/reference/android/gesture/Gesture.html) it reads: “A user-defined gesture can be recognized by a GestureLibrary and a built-in alphabet gesture can be recognized by a LetterRecognizer.” So how do you use the LetterRecognizer and where is the docs on it? There’s no API for that in the […]

SyncAdapter not being called depending on order of Account setup calls

I’ve come across some slightly odd behaviour with my SyncAdapter. The first time I install my app (after uninstalling with adb), it launches and creates an account. Depending on the ordering of some statements (see below), my SyncAdapter’s onPerformSync() will never be called; my account under “Accounts and sync” shows the “sync in progress” icon […]

Android Eclipse NoClassDefFoundError for external .jar files

I have come across a strange error. I have an Android project that uses external libraries, in particular: android-support-v4.jar (for Fragment support in Android 1.6) GoogleAdMobAdsSdk-4.3.1.jar (for ads) The project ran fine until I updated some aspects of the plugin (can’t recall the specifics as I did not pay too much attention to it) and […]

android edittext remove focus after clicking a button

I have an Activity with an EditText and a Button. When the User clicks on the EditText, the keyboard is shown and he can type in some Text – fine. But when the user clicks on the Button I want the EditText to be no more in focus i.e. the keyboard hides til the user […]

Android layout centering in RelativeLayout for custom ListView

I’m really pulling my hair out over this one. Some background. I have a list of items that all have checkboxes next to them. When you deselect a checkbox, a button appears that allows you to delete the item from the list. This seems backwards at first but we only want “selected” items to be […]

How to re-authenticate a user on Firebase with Google Provider?

The example for using reauthenticate() in Firebase shows only how to re-authenticate a user who signed with Email and Password: AuthCredential credential = EmailAuthProvider.getCredential(“user@example.com”, “password1234”); FirebaseAuth.getInstance().getCurrentUser().reauthenticate(credential); I also know how to re-authenticate with Facebook Provider (credential = FacebookAuthProvider.getCredential(AccessToken.getCurrentAccessToken().toString())). Problem is there’s no equivelant method in Google API to get the current Access Token and eventually […]

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