Tag: android-studio

Android Data Binding Fallback/Default value

I am using Android data binding which works great: <TextView android:text=”@{ee.Name}” … But if I do that the Android Studio designer doesn’t show any text. Without text I can’t see the TextView at all. Which is understandable because I haven’t bound the data yet. Is there something like a fallback value or a default value […]

Remove firebase analytics from android app completely

I added firebase analytics in my app just to try it out. I followed the steps in official guidelines. Now I have decided against it. I have undone whatever I had done to add it. (Removed entries from project level and app level build.gradle; removed all usages from source code.) But I am still getting […]

how to change Android Studio terminal background color

Android Studio is so powerful tool and very convenient to use. I super like its Darcula Theme. But the problem is all windows changed their background color to black except Terminal. See screenshot below I noticed I can change the bash path from here So I wonder if I can change the terminal background color […]

Failed to apply patch while updating android studio

I am getting the following error while updating android studio. I have tried increasing heap space to 2048 mb , but still i get the error. Temp. directory: C:\Users\I306480\AppData\Local\Temp\ java.lang.OutOfMemoryError: Java heap space (failed to allocate 149228632 bytes) at ie.wombat.jbdiff.JBPatch.bspatch(JBPatch.java:91) at com.intellij.updater.BaseUpdateAction.applyDiff(BaseUpdateAction.java:112) at com.intellij.updater.UpdateAction.doApply(UpdateAction.java:44) at com.intellij.updater.PatchAction.apply(PatchAction.java:184) at com.intellij.updater.Patch$3.forEach(Patch.java:308) at com.intellij.updater.Patch.forEach(Patch.java:360) at com.intellij.updater.Patch.apply(Patch.java:303) at com.intellij.updater.PatchFileCreator.apply(PatchFileCreator.java:84) at […]

com.android.ddmlib.AdbCommandRejectedException: device offline (Even when device is connected)

After update of Android Studio to 2.1.2 I’ve been getting the following error too many times when i make a change. com.android.ddmlib.AdbCommandRejectedException: device offline Error while Installing APK The problem is device was never connected and is not offline If i unplug and re-plug the device it starts working fine again. This never happened in […]

running Android Studio on Windows 7 fails, no Android SDK found

This question already has an answer here: Android Studio installation on Windows 7 fails, no JDK found 27 answers

Dependency org.json:json:20090211 is ignored for debug as it may be conflicting with the internal version provided by Android

While I am running android studio, the warning below appears: Dependency org.json:json:20090211 is ignored for debug as it may be conflicting with the internal version provided by Android. In case of problem, please repackage with jarjar to change the class packages How can I resolve this error? Thank you.

Intel HAXM 6.0.4 not compatible with MacOS

I have MacOS 10.11 El Capitain installed. Today I got the notification that Intel HAXM 6.0.4 is available and the Android SDK Manager suggested me to remove Intel HAXM 6.0.3. I did it. But now, I got the message that Intel HAXM 6.0.4 is not compatible with MacOS. Is there a way to get the […]

Android findFragmentByTag returns null when debugging

Background: I am writing an android application with an activity that can be populated by one of a number of fragments. Relatively often, I need to pass a bundle of data to the active fragment so that it can update the UI accordingly. To get the current fragment, I call getfragmentManager().findFragmentByTag() and cast the returned […]

Failed to resolve: com.android.support:customtabs:

This question already has an answer here: Android studio default project fails: Error:Failed to resolve: com.android.support:support-v4:25.2.0 2 answers Failed to resolve: com.android.support:cardview-v7:26.0.0 android 10 answers

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