Tag: android-studio

The emulator process for AVD was killed in android studio2

I have created the sample android project “hello World” and created new Virtual Device from the AVD manager. later trying to run the app over AVD, was getting following error: “Error while waiting for device: The emulator process for AVD was killed.” Android Studio: 2.0v Project TargetVesrion: 23 AVD is Nexus5 with x86_64 CPU with […]

Android Studio does not compile when using deprecated API

I am having issues compiling and running my application on Android Studio. The problem: It doesn’t like that I am using deprecated APIs. (from gradlew compileDebug –stacktrace. Full stacktrace here Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. The Background: I am using a PreferenceActivity which uses […]

I'm getting “OutOfMemoryError thrown while trying to throw OutOfMemoryError; no stack available” in Android

Till yesterday my Application worked fine, But what I did is, due to some reasons I had to open same Application with different work space in Android Studio. From then when I try to run the App I’m getting following exception, So I’ve removed newly created works pace but still I’m stuck with the following […]

Android Studio 2.2 preview throwing error while implementing databinding

I have updated my android studio to 2.2 preview 1 and applied the specified dependencies for google and firebase as specified but still getting the following error EmptyThrowable: Wrong dependency type: class com.android.tools.idea.databinding.DataBindingUtil$LightBRField dataBinding { enabled true }

Android Studio GPU monitor will not work for OpenGLES2

How can I monitor the GPU usage of my OpenGLES2 app on Android? The GPU monitor in Android Studio seems to ignore OpenGL GPU usage. Please note that I have enabled gpu rendering profile in developer options and set it to Show in adb shell dumpsys gfxinfo. The GPU monitor seems to run, but it […]

Android Developer Console – wrong fingerprint after release build with Android Studio

I started building an Android app with Adobe Air so I needed a .p12 key for building the release version .apk Next I ported the app to Unity3d so I converted the .p12 to .keystore. Up to this point there was no problem uploading new versions to the Developer Console. Now I rewrote and redesigned […]

Android Studio: Integrating Butterknife?

I am trying to implement Butterknife into my android studio project. However when I do so I get an error on @InjectView “cannot resolve symbol InjectView”. Have I not implemented Butterknife sucsessfully? Activity code: package com.example.rodf.testapp; import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; public class MainActivity extends ActionBarActivity { @InjectView(R.id.tvHelloWorld) TextView tv1; @Override protected […]

Why Android Studio is removing and/or changing layout_margin* constraints?

I’m using android.support.constraint.ConstraintLayout to layout a simple card’s content views. I’m getting random changes in my XML, every time, when: I switch to Android Studio’s layout editor’s Design tab Or when I have a Preview pane turned on (in this case changes happens even more often during my changes). Those random changes include: Removal of […]

Android Studio, Locat displays infinite “I/art: Enter while loop.”, even when running Empty Activity

Building an app in Android Studio. In the logcat I get an infinite display of: “I/art: Enter while loop.” The app works like a charm but it still looks weird. On Google I couldn’t find anything and here on stack I found one reference with a very specific situation and a very specific solution. Problem […]

Android-Studio ( or IDEA in general ) refactor over multiple source sets

What is a good way to handle the problem of refactoring over multiple source sets? E.g. in different flavors – or now unit-tests and integration-tests. You can only have one active source-set that is considered for renaming – so the other source-set might end up broken. What are your strategies to tackle this? Perhaps there […]

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