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 is the official Android development environment that is based on IntelliJ IDEA. Android Studio provides integrated Android developer tools for development and debugging.

Android Studio offers:

  • Gradle-based build support.
  • Clean Logcat for different packages with filtering options.
  • Android-specific refactoring and quick fixes.
  • Lint tools to catch performance, usability, version compatibility and other problems. ProGuard and app-signing capabilities.
  • Template-based wizards to create common Android designs and components.
  • A rich layout editor that allows you to drag-and-drop UI components, preview layouts on multiple screen configurations, and much more.
  • Built-in support for Google Cloud Platform, making it easy to integrate Google Cloud Messaging, App Engine, and Firebase as server-side components.
  • Android Native Development (NDK) support, including single-step debugging of JNI C++ code, code completion, Gradle build support for JNI C++ code
  • Image Asset Studio, a tool which generates a set of icons for your Android applications from an existing image, clipart, or text-string resources
  • Vector Asset Studio, a tool which enables the developer to import and manage vector graphics as a drawable resource
  • Instant preview and review of incremental code changes on the emulator or physical device without redeploying a new debug build or, in many cases, without restarting the app
  • Built-in Git Client with GitHub integration
  • New and improved Compose View Library for better alternating Layouts with different designs.
  • Various debugging and analysis tools are available: Android Profiler, Android Debug Bridge, Android Emulator, Device File Explorer, CPU Profiler, systrace, Layout Inspector, Network Profiler and an Emulator for Wear OS.

The current stable version is Android Studio Flamingo | 2022.2.1 Patch 2 May 24, 2023.

References:

Related tags for specific editions:

90012 questions
32
votes
9 answers

Disable showing of run window in IntelliJ

In IntelliJ every time I make a change in code and I run the app afterwards, "run window" is automatically popped up. Is there any way to disable this annoying behaviour or how to make it less distracting?
sealskej
  • 7,281
  • 12
  • 53
  • 64
32
votes
3 answers

Restart ADB from Android Studio

I previously developed on Eclipse and just migrated to Android Studio. Everything works fine, it's better and faster. I work on real device, and Android Studio recognizes it without issue. But when I disconnect and reconnect my device, it doesn't…
Adrien Cerdan
  • 1,005
  • 1
  • 11
  • 21
32
votes
4 answers

How to get Android Studio to recognize file as source (test)

I'm trying to create Robolectric tests for an android project (heck, i'd be happy to even make them unit tests) I have the folder directory as: MyApp - app - src - main - java - com.myapp …
David T.
  • 22,301
  • 23
  • 71
  • 123
32
votes
8 answers

Android Studio starting in debug mode by default

I have been working on a project, and when I run the project in android studio it had been running correct and when I ran in debug mode it ran correctly. All of a sudden, when I try to run the project normally, it pops up on the device waiting for…
DJ-DOO
  • 4,545
  • 15
  • 58
  • 98
32
votes
4 answers

Why Android Studio doesn't allow me to create Java Classes?

Starting from the update to Android Studio 2 days ago, it doesn't let me create Java classes anymore. And the current classes now have a strange symbol. I tried to export and import many times with different configuration but they never worked. Any…
Stefano Munarini
  • 2,711
  • 2
  • 22
  • 26
32
votes
3 answers

Gradle unable to resolve Play services dependency

I've got a clean Android project with Google Play services rev. 13 installed through the SDK manager, following these instructions. My build.gradle file is as follows: dependencies { compile…
Randall Ma
  • 10,486
  • 9
  • 37
  • 45
32
votes
5 answers

Prevent Android Studio/Intellij Idea from building project on startup

When I open Android Studio, it loads the last project, and runs build. I really don't need it to do this. If I save a project with errors in it, because I haven't got time to fix them, but plan on doing it later, I don't really want the compiler to…
joe_deniable
  • 2,562
  • 3
  • 28
  • 38
32
votes
4 answers

How do I structure project test directory in Android Studio?

There is no convention for this yet, but how do I structure the test directory for Android Studio, now that what's stated on the Android testing fundamentals page differs? Particularly, any pointers on how to get jUnit tests up and running on…
Jonathan Lin
  • 19,922
  • 7
  • 69
  • 65
32
votes
2 answers

How do I change Android Studio editor's background color?

I want the grey shade as shown in previews but mine has white as default. I tried to search in file->settings but without much success. Also, I couldn't find Project->clean or any such option. Any help will be appreciated, thanks!
Chintan Trivedi
  • 748
  • 1
  • 8
  • 21
32
votes
2 answers

Android Studio doesn't start with connected device

I have installed Android Studio v0.1 on Mac. My project imported and built successfully. AVD shows up whenever I run or debug the project, even though my device is connected and shown in integrated DDMS. I have double checked with adb devices from…
neo
  • 1,248
  • 1
  • 13
  • 26
31
votes
12 answers

Update to Android Studio Chimpmunk: 'Minimum supported Gradle version is 7.3.3. Current version is 7.2.'

After update to Android Studio Chimpmunk, I get the error message on Gradle sync: Minimum supported Gradle version is 7.3.3. Current version is 7.2.' In my gradle-wrapper.properties, I have got…
toto_tata
  • 14,526
  • 27
  • 108
  • 198
31
votes
3 answers

Android Manifest merge error when removing package name for namespace

According to this doc we no longer need to provide package name in AndroidManifest.xml and instead use namespace in build.gradle and there we can define our package name. package="org.sample.domain" found in source AndroidManifest.xml:…
31
votes
8 answers

How can I fix this error with ButterKnife in Android Studio?

Building succeeds, but running on an emulator fails with this message in the console: Cause: superclass access check failed: class butterknife.compiler.ButterKnifeProcessor$RScanner (in unnamed module @0x65e8e2f6) cannot access class…
justColbs
  • 1,504
  • 2
  • 18
  • 28
31
votes
5 answers

The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for information on installing Java

I couldn't run the flutter app on android emulator or android phone. I installed the recently released android studio for arm-mac platform on m1 mac. Please answer if I am doing anything wrong here or is it the problem with the release itself. Debug…
Yashwanth Ravula
  • 533
  • 1
  • 4
  • 17
31
votes
8 answers

print() statement not printing to console in flutter iOS app within Android Studio

The print() statement is not printing any data within Android Studio's console in Flutter iOS version, but same code works fine for flutter android version. Here is the flutter Doctor summary: [✓] Flutter (Channel master, v1.10.7-pre.109, on Mac OS…
Aravinth thiyagarajan
  • 2,193
  • 3
  • 12
  • 10