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
33
votes
2 answers

Android Studio, Logcat displays infinite "I/art: Enter while loop.", even when running Empty Activity

Building an app in Android Studio. In the logcat I get an infinite display of: "I/art: Enter while loop." The app works like a charm but it still looks weird. On Google I couldn't find anything and here on stack I found one reference with a very…
tjtdroid
  • 331
  • 3
  • 4
33
votes
7 answers

Android Studio release build does not output aar

I have create a very simple 'Android Library' module with only one class which builds fine in debug releasing build/output/library-debug.aar But, when I switch to release, even though it says build successful, the aar is not there. The Android…
Abdalla
  • 2,071
  • 2
  • 16
  • 27
33
votes
6 answers

How to change inactive color on bottom navigation?

I can't change inactive color on my bottom navigation and this my xml
Haryanto
  • 355
  • 1
  • 5
  • 12
33
votes
4 answers

Android Studio - jump back and forth between matching braces using a single key sequence

I had to move from Eclipse to Android Studio for Android development. Many features are better, several are worse. In particular I miss the jump between matching braces (opening -> closing brace and v.v.) by means of a single key sequence. I managed…
NickT
  • 23,844
  • 11
  • 78
  • 121
33
votes
10 answers

How to use the new Android Constraint Layout to reduce View hierarchy

Do you have any idea on how to use the new Constraint Layout that was recently announced at this year's Google I/O?
33
votes
1 answer

Why won't gradle override Java classes in different Android flavors?

I have an android app with 2 flavors: -flavor1 -flavor2 My directory tree is : /src/main /src/flavor1 /src/flavor2 main has the default source set. flavor1, and flavor2 directories have their own source set, that gradle gets automatically. If I…
agustinaliagac
  • 829
  • 10
  • 24
33
votes
8 answers

Android Studio Keyboard Shortcut for full screen mode

I want to enter full screen mode in Android Studio. Is there any Keyboard Shortcut for doing it. What Is the Keyboard Shortcut key for enter and exit full screen mode in Android Studio?
33
votes
1 answer

Run 'app' with Code Coverage in Android Studio

There is a Run with Coverage button in Android Studio (Check attached image) , but it's always disabled, how can I enabled it?
AVEbrahimi
  • 17,993
  • 23
  • 107
  • 210
33
votes
4 answers

Proguard ignores config file of library

I'm facing a really weird problem for days now... I have a Gradle app with two modules, one main module and one library module. In both modules I have declared a proguard-rules.pro file path which is correct In both .gradle files I have…
Marian Klühspies
  • 15,824
  • 16
  • 93
  • 136
33
votes
11 answers

Android Studio Not Including SDK

I'm trying to setup Android Studio on a new install of Mac OS X Yosemite. I downloaded the Android Studio Beta v0.8.14 from here: https://developer.android.com/sdk/installing/studio.html and upon launching it complained about not having an SDK…
Kevin Sylvestre
  • 37,288
  • 33
  • 152
  • 232
33
votes
2 answers

How to put a watch (see how a variable is modified) in Android Studio?

I don't know how to use a watch in Android Studio. I want to see how the value of a variable modifies through debugging. Does anyone know how to do this?
uwe seeler
  • 343
  • 1
  • 3
  • 13
33
votes
12 answers

Where is the plugin folder for Android Studio on Mac

I have installed a plugin which now crashes my Android Studio on start. Does someone know where Android Studio stores its downloaded plugin files, so I can delete it manually?
JimVanB
  • 1,215
  • 1
  • 13
  • 29
33
votes
7 answers

proguard-project.txt not found in android studio

I am new to Android and Android Studio. During my learning I came across the Google Play Services for Ads and all. I tried to enable proguard in my project but reading the below link proguard. The problem is that I am not able to find…
MCA Shah
  • 405
  • 1
  • 4
  • 10
33
votes
7 answers

Gradle version 1.6 is required. Current version is 1.8-20130730220035+0000

Just updated Android-Studio to version 0.2.7 an now I get the error message from the title: In the log window there is link to the grade setup: No matter which option I use the error message stays the same. I deleted my ~/.gradle directory and…
Martin
  • 11,577
  • 16
  • 80
  • 110
33
votes
7 answers

Android-Studio upgraded from 0.1.9 to 0.2.0 causing gradle build errors now

My current project had been building with Gradle just fine, since I created it (about a month ago), after acquiring Android-Studio. [I installed some earlier updates to Android-Studio, and had no problems with those.] But, today, after I upgraded…
David
  • 2,253
  • 5
  • 23
  • 29