Questions tagged [android-studio]
Use for questions about using Android Studio, an official IDE by Google targeted at Android app development. Do NOT use for questions about programming for Android in general; instead, use the [android] tag.
android-studio
90,802
questions
1755
votes
57
answers
1.3m
views
Rename package in Android Studio
How do you rename packages in the new IDE Android Studio, based on IntelliJ IDEA?
Is there an automatic refactoring included?
I want to make bulk refactoring, but I don't know how. I worked two ...
1598
votes
26
answers
721k
views
Where to place the 'assets' folder in Android Studio?
I am confused about the assets folder. It doesn't come auto-created in Android Studio, and almost all the forums in which this is discussed talk about Eclipse.
How can the Assets directory be ...
1455
votes
24
answers
476k
views
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 is and what its purpose is? Why is it included in Android Studio?
1396
votes
32
answers
558k
views
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 but IntelliJ docs say that .iml must be included in your source control.
1236
votes
55
answers
628k
views
How do I "select Android SDK" in Android Studio?
After a successful import of an Eclipse-Android-Project into "Android Studio 1.4", I get the error
"Please select Android SDK"
when I click on the button to run the application in ...
911
votes
47
answers
749k
views
Android Studio Error "Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8"
I downloaded the newest Android Studio, and I wanted to run the Android Jetpack Compose Project, but when I ran it, I got the error:
> Failed to apply plugin 'com.android.internal.application'.
>...
894
votes
24
answers
701k
views
Code formatting shortcuts in Android Studio for Operation Systems
I have started developing with Android Studio. In Eclipse I was using Ctrl + Shift + F, but in Android Studio it does not work. It will be different.
How can I jump to any method in a .java file? I ...
837
votes
12
answers
507k
views
What is the shortcut to Auto import all in Android Studio?
Is there any way of auto importing in Android Studio. Something like the auto-import feature that Eclipse has when you use the keybinding: SHIFT + CTRL + O in Android Studio?
Currently I have only ...
830
votes
32
answers
654k
views
How do I add a library project to Android Studio?
How do I add a library project (such as Sherlock ABS) to Android Studio?
(Not to the old ADT Eclipse-based bundle, but to the new Android Studio.)
807
votes
24
answers
560k
views
Error retrieving parent for item: No resource found that matches the given name after upgrading to AppCompat v23
I've always programmed Android with Eclipse and decided to start migrating to Android Studio. I decided to use the same SDK I already had for Eclipse, then:
Started a new project
Set minimum SDK 4.0 (...
792
votes
103
answers
1.2m
views
"cannot resolve symbol R" in Android Studio
In every instance in all of my classes where I reference R.id.something, the R is in red and it says "cannot resolve symbol R". Also every time there is R.layout.something it is underlined in red and ...
737
votes
54
answers
1.1m
views
How to get the SHA-1 fingerprint certificate in Android Studio for debug mode?
I am trying to make a Map app in Android Studio, on Windows. How can I find the SHA-1 fingerprint certificate number?
When I was using Eclipse it was right under Windows -> Preferences -> ...
680
votes
7
answers
447k
views
How to completely uninstall Android Studio on Mac?
I recently downloaded Android Studio on my Macbook Pro and I messed up with it every time I open it. It gives me plugin errors and several other errors. I need to uninstall it completely from my mac. ...
660
votes
5
answers
283k
views
Invoke-customs are only supported starting with android 0 --min-api 26
before i'm use build version gradle 26 but
after change buildtoolsversion to 27 like as this image
I am using android studio 4.2.2 recently i update all my dependency
and
sourceCompatibility ...
659
votes
35
answers
775k
views
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)
It works fine when I select the Build Variant which has the applicationId ...