Tag: android-studio

How to import remote library in Android Studio using gradle?

I am trying to import android-swipelistview (https://github.com/47deg/android-swipelistview) into my Android Studio module using gradle. Shouldn’t this be possible with build.gradle config alone? Does anyone have a config file(s) that does the job?

android studio java.lang.NoClassDefFoundError:

I’ve made pretty much a fresh project. I added in the gson library by google to my projects /libs directory and added it as a library. I also added it into my build.gradle as compile files(‘libs/gson-2.2.4.jar’) So now everything looks ok, there aren’t any errors given by Android Studio, no red underlines anywhere. I can […]

AndroidAnnotations Nothing Generated, Empty Activity

I am trying to create a project using AndroidAnnotations in Android Studio. When I build and run the project, everything seems to compile fine, yet I get nothing but a blank activity for the app. In addition, it does not appear that anything is generated by AndroidAnnotations. I have added androidannotations-api-2.7.1.jar as a dependency for […]

Android Studio (0.4.6) hide title bar in preview?

Does anyone know of a way to hide the title bar in Android Studio previews (that’s the title bar on the device previews, not the title bar of Android Studio)? I am writing a full screen app and using virtually all the screen but the preview insists on showing the title bar which makes it […]

Is it possible to debug locally Google Play's in-app billing in Android Studio?

I am getting this error testing in-app subscription products locally. authentication is required. you need to sign in to your google account I was able to check the the inventory for the product but shouldn’t I also be able to purchase it? There are a number of posts about why this error might occur which […]

Android Gradle Plugin 1.1.0 – getNdkFolder() not found anymore, any replacement?

I just updated android Gradle plugin to 1.1.0 from 1.0.0, and I got this error: No signature of method: com.android.build.gradle.LibraryPlugin.getNdkFolder() is applicable for argument types: () values: [] I tried to find diff of gradle plugin 1.0.0 to 1.1.0 but couldn’t find anywhere online. Seems like getNdkFolder method has been either changed or removed. Is […]

How background changes at login in Instagram app?

I have made my app to change background color every few milliseconds. But it is not appealing to user. If you have seen Instagram’s login screen, it changes color at a very soft rate and with blurry effect. I just wanted that type of background for my app. What should I have to do for […]

Android Studio Gradle error “Multiple dex files define…”

My Project was working fine, when I have added facebook sdk into my project I have an error like this, I have tried so many ways to fix this, but I didn’t. What should I do? Error:Execution failed for task ‘:app:packageAllDebugClassesForMultiDex’. > java.util.zip.ZipException: duplicate entry: bolts/AggregateException.class My App gradle is below apply plugin: ‘com.android.application’ android […]

Setting Android Toolbar Background and Text Colors in Android Studio 1.4.1

I’m trying to change activity action bar’s background color and title color, i tried official tutorial and some answers from here but none worked for me , i’m missing something. styles.xml <!– Base application theme. –> <style name=”AppTheme” parent=”Theme.AppCompat.Light.DarkActionBar”> <!– Customize your theme here. –> <item name=”colorPrimary”>@color/colorPrimary</item> <item name=”colorPrimaryDark”>@color/colorPrimaryDark</item> <item name=”colorAccent”>@color/colorAccent</item> </style> <style name=”AppTheme.NoActionBar”> <item […]

Android studio suddenly cannot resolve symbol R

I was having a project open in Android studio. It was generated by the wizard and working fine. I did some small changes to activity_main.xml and when I changed back to MainActivity.java i get the error in several places that it cannot resolve R. I might have done something to cause this. But I´m not […]

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