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
31
votes
24 answers

Flutter Hot reloading not working in android studio(mac)

While working on mac machine I found that hot reloading not working in Android Studio. I don't know what's wrong :) Here is the code which not reloading(I am changing the Hello world text to Flutter Sample text) import…
Jitesh Mohite
  • 31,138
  • 12
  • 157
  • 147
31
votes
4 answers

Can someone provide an up-to-date Android guide for Google Drive REST API v3?

Myself and many others have been struggling with setting up the Google Drive REST API v3 to work with Android apps. This mainly stems from the fact that the official Google documentation is missing a proper quick start guide for Android and we are…
ChrisUK
  • 547
  • 8
  • 17
31
votes
2 answers

GC overhead limit exceeded when enable R8 Shrinker in Android Studio

I'm using Android Studio 3.4 (Canary 9), when I build my app, it failed with the following error Task :app:transformClassesAndResourcesWithR8ForDebug R8 is an experimental feature. If you experience any issues, please file a bug at…
nhoxbypass
  • 9,695
  • 11
  • 48
  • 71
31
votes
10 answers

Android studio Update bundle jarsigner: key associated with key0 not a private key

These are the steps I am taking, in the order presented, to update a published app after fixing a bug, through Android studio: Fix the bug. Changed to versionCode 2 and versionName "1.1" on build.gradle (Module) Generate Signed Bundle Key-store…
jer
  • 323
  • 3
  • 5
31
votes
7 answers

Could not find aapt2-proto.jar

See this link (as I suspected) has the POM file and no jar. Important Notes: I am using latest version of react native ... v0.57.3 and also latest version of react-native-cli ... v2.0.1 at this time. I have Java 11 installed in my computer. I am…
Harry
  • 951
  • 2
  • 12
  • 18
31
votes
5 answers

Access denied finding property "vendor.debug.egl.swapinterval" I am keep getting this error in android studio when I run my app

I am getting this errors lots in lots. Here is the fraction of it. 10-17 18:21:33.518 6476-6503/royal.com.ocr E/libc: Access denied finding property "vendor.debug.egl.swapinterval" 10-17 18:21:41.614 6476-6503/royal.com.ocr E/libc: Access denied…
Vishwa Ardeshna
  • 437
  • 1
  • 4
  • 7
31
votes
24 answers

Android build.gradle ERROR: ParseError at [row,col]:[65,9] Message: expected start or end tag Affected Modules: app

build.gradle: Android build.gradle shows following error ERROR: ParseError at [row,col]:[65,9] Message: expected start or end tag Affected Modules: app
Sreenu
  • 416
  • 1
  • 5
  • 9
31
votes
2 answers

Disable wild cart import in intellij Android Studio in kotlin

I want to turn off wild cart import in java class import. For example if I am importing java.util package's any class then it will import whole java package like java.util.*. So how can I stop in android studio 3.1.1. Here is screenshot from my…
Sagar Kacha
  • 8,338
  • 4
  • 18
  • 27
31
votes
3 answers

Line break, new line in KDoc

Assuming we have such documented string /** retrieve a state of the service *
HTTP code 200 - normal state *
HTTP code 403 - some recoverable state: const val SERVICE_STATE = "servicestate" */ There are several
here, which i used…
Beloo
  • 9,723
  • 7
  • 40
  • 71
31
votes
3 answers

How to downgrade Android Emulator

With Android Studio's Android Emulator I'm seeing a problem displaying a complex WebGL-enabled graphics web page in a Java WebView widget (PixiJS demos appear blank in WebView on Android emulator). But I can only reproduce the problem with Android…
Michael Osofsky
  • 11,429
  • 16
  • 68
  • 113
31
votes
2 answers

VSCode keyboard shortcuts for Android Studio

Is there a way to add VSCode as an option under Android Studio's keymap settings? Under File -> Settings... -> Keymap There are many other options listed, however none of them are even similar to VSCode
31
votes
13 answers

Android Studio - Error:Program type already present

When I try to compile the code, the following error appears on Android Studio 3.0.1 Error:Program type already present: com.squareup.picasso.Action$RequestWeakReference My gradle code: ... compile 'com.android.support:appcompat-v7:26.1.0' …
Marcostox
  • 311
  • 1
  • 3
  • 4
31
votes
17 answers

Android Studio AVD - Emulator: Process finished with exit code 1

I'm having trouble starting my android emulator. Nothing appears to load. Pixel 2 API 26 Android 8.0 x86. Linux Ubuntu 16.04 LTS 64-bit. 12/10/17 2:20 PM Emulator: libGL error: unable to load driver: vmwgfx_dri.so 2:20 PM Emulator: libGL…
Kay
  • 17,906
  • 63
  • 162
  • 270
31
votes
16 answers

Error:SSL peer shut down incorrectly In Android studio 3.0.1

When I build the project I receive the following error Error:SSL peer shut down incorrectly please let me know how to fix this error
Rahul Wadhai
  • 413
  • 1
  • 4
  • 9
31
votes
2 answers

save keystore password in android studio 3

in android studio 2 you can save key store password and key password but in android studio 3 you can just save key password and you have to write key store password every time you want to build apk is there a settings or way to save key store…
max
  • 5,963
  • 12
  • 49
  • 80
1 2 3
99
100