Tag: android-studio

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 studio gradle duplicate files dagger compiler

having strange problem after updating android studio to 0.4.0 and gradle plugin to 0.7.1 and gradle version to 1.9 with dagger compiler build.gradle android { packagingOptions { exclude ‘META-INF/DEPENDENCIES.txt’ exclude ‘META-INF/LICENSE.txt’ exclude ‘META-INF/NOTICE.txt’ } } dependencies { compile ‘com.android.support:support-v4:+’ compile ‘com.android.support:support-v13:19.0.+’ compile ‘com.google.code.gson:gson:2.2.4’ compile ‘com.squareup.dagger:dagger:1.2.0’ compile ‘com.squareup.dagger:dagger-compiler:1.2.0’ } on build getting this error Execution failed […]

advanced profiling build error

I’m trying to enable the “Advanced profiling” in the new Android Studio 2.4 preview 2, but I’m getting build error in message log: Information:Gradle tasks [:app:assembleRelease] Error:Execution failed for task ‘:app:transformClassesWithProfilers-transformForRelease’. > java.lang.IllegalArgumentException (no error message) Information:BUILD FAILED Information:Total time: 2.47 secs Information:1 error Information:0 warnings Information:See complete output in console I’m trying to do […]

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