Top "Android-studio" questions

Use for questions about using Android Studio, an official IDE by Google targeted at Android app development.

What should be in my .gitignore for an Android Studio project?

What files should be in my .gitignore for an Android Studio project? I've seen several examples that all include .iml …

git android-studio gitignore
SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable

I recently tried to import sample Android games I downloaded from Google's developer website. After importing them into Android Studio, …

android android-studio android-studio-import
What is the shortcut to Auto import all in Android Studio?

Is there any way of auto importing (like in Eclipse Shift+Ctrl+O) in Android Studio? I have found only …

android-studio ide keyboard-shortcuts auto-import
View contents of database file in Android Studio

I have been using Android Studio to develop my app since it's was released. Everything works nice until recently, I …

android android-studio android-sqlite ddms
No matching client found for package name (Google Analytics) - multiple productFlavors & buildTypes

Context: I'm trying to set up Google Analytics for my app. (having 4 custom buildTypes and more than a few productFlavors) …

android android-studio gradle google-analytics android-productflavors
Android Studio marks R in red with error message "cannot resolve symbol R", but build succeeds

In every project I've tried to create in Android Studio, all usages of R are marked in red with the …

android gradle android-studio
Setting ANDROID_HOME enviromental variable on Mac OS X

Could anybody post a working solution for setting ANDROID_HOME via the terminal? My path to the Android-SDK is /Applications/…

macos android-studio android-sdk-tools
What is Gradle in Android Studio?

Gradle is a bit confusing to me, and also for any new Android developer. Can anyone explain what Gradle in …

android-studio gradle android-gradle-plugin build-automation
android studio 0.4.2: Gradle project sync failed error

After updating to 0.4.2 I get this error when opening a project: 'Gradle project sync failed. Basic functionality (e.g. editing, …

android android-studio android-gradle-plugin build.gradle