Tag: android-studio

Edit Configuration custom specific instrumentation runner missing property

Android Studio 2.3 RC 1 Build #AI-162.3742087, built on February 16, 2017 JRE: 1.8.0_112-release-b06 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o I have created my own custom test runner that I want to use to run my instrumentation espresso tests. I have entered this in the build.gradle file: testInstrumentationRunner “me.androidbox.busbymovies.CustomTestRunner” I have created […]

Android Studio publish local library

I’ve recently switched to Android Studio from Eclipse, and its better for the most part. But now I’m at the point of wanting to create libraries to be reused later. I know about modules, but don’t want to use them, as it seems to copy a duplicate in each project (I’d rather have a reference […]

Android AutoCompleteTextView popup moving after displaying

When I use the autocompletetextview everything works fine except it keeps switching between two positions: the correct one right below the textview and quite a ways lower. It starts wrong, but almost immediately moves to the correct position. However this is very annoying when typing or backspacing as it happens for every letter. I am […]

Google Play APK and Android Studio APK (USB debug) behaving differently

I posted a question previously: 'No args constructor for class does not exist', but it does and received an answer that worked when I tested it using the USB debug mode on my phone via Android Studio. However, when I pushed the app to Google Play, it ceases to work and causes the same error […]

How to remove the device's frame on Android Studio's emulators

I am making an android app on Android Studio and I have this emulator for Nexus S. When the emulator is running, it shows the frame of the device. I want the emulator to show the screen of the device only. I’ve tried looking in the settings but can’t help it. Thanks.

Unable to set parent activity for new activities in Android Studio. Error: Hierarchical parent must already exist

I am starting to build my first app from developer.android.com. Recently switched to Android Studio and found that I can’t set the hierarchical parent for the new activity (DisplayMessageActivity). It states “Hierarchical Parent must already exist”. Can someone please guide me on this? In Eclipse, it works fine.

How do I set an environment variable in Android Studio before it runs my gradle build

My Gradle build looks at an environment variable called BUILD_NUMBER to determine the version to allocate to my android application as follows: def buildNumber = System.getenv(“BUILD_NUMBER”) ?: “local” So as long as that environment variable is set, the build number is used in defaultConfig as follows: versionName “1.4.0.”+buildNumber Usually, Jenkins will call this Gradle build […]

Android Studio Run button does nothing

Upon creating a brand new android app; I click the run button, and it sits there and does absolutely nothing. I’m assuming an issue with Gradle possibly as the only thing remotely close to an error is the “Gradle Sync” warning me: Warning:The project encoding (windows-1252) does not match the encoding specified in the Gradle […]

null in android studio

Whenever i click on run project , it is showing me NullPointerException : null. I don’t know what is the reason, why am i getting this? NOTE Dont point this question as duplicate of What is a Null Pointer Exception, and how do I fix it?, because i am not getting null in any control […]

Android Studio 5.2 – refresh failed. Cause:com.google.common.collect.Maps

This question already has an answer here: Gradle 0.9.+/0.9.2 error: Unable to load class 'com.android.builder.testing.api.DeviceProvider' 2 answers

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