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
4 answers

what is Android Studio Instant Run?

Today I have updated my Android Studio and run the app which existing with previous version.When I was running the app with previous version app launching very fast but when I updated android studio and run the same app with updated version then app…
DkThakur
  • 516
  • 2
  • 5
  • 17
32
votes
5 answers

Is their a "region-like" folding feature for Android Studio

I'm developing on Android Studio and as others IDE, Android Studio has a feature to create "regions" in the java code that can be folded. (see below) With this kind of code //region INITIALIZATION private int myVaribale; private String…
MHogge
  • 5,408
  • 15
  • 61
  • 104
32
votes
3 answers

Difference between TextInputLayout and TextInputEditText

Need to know what actually difference between TextInputEditText and TextInputLayout, When should we use one of them.
32
votes
7 answers

Error:Cause: failed to find target with hash string 'Google Inc.:Google APIs:23' in: E:\AndroidStudio\SDK

I have the above error and have no clue why I still have it. I have reinstalled API 23 numerous times and done googling and the only fix I found was to reinstall the API but still have the issue. Does anyone have a fix for it? apply plugin:…
Stillie
  • 2,647
  • 6
  • 28
  • 50
32
votes
10 answers

Android Studio: Text cursor disappears/gone after open some other class or pasting text in different classes

Android Studio: Text cursor disappears/gone after open some other class or pasting text in different classes. Cursor is randomly disappear while coding in Android Studio. Currently using version 1.5.1 Some time cursor is only visible in one file…
Amandeep Rohila
  • 3,558
  • 2
  • 28
  • 34
32
votes
7 answers

Massive hprof files being created somehow, preventing me from pushing

I am currently unable to push changes I've made to a project to GitHub because it keeps finding these massive (~300MB) files called "java_pid(random numbers).hprof". I have no idea where they're coming from. Google searches aren't coming up with…
Andrew Torr
  • 1,057
  • 3
  • 13
  • 26
32
votes
5 answers

How to remove email icon from Android Studio emulation

How do I get rid of the email icon on the bottom of the phone? It is on all of them and it shouldn't be there.
user3577756
  • 643
  • 1
  • 9
  • 13
32
votes
2 answers

How to set app's version number in Android Studio

I would like to upgrade an app's version number (that is displayed in the Play Store) in Android Studio, but I'm not an Android developer so I'm not sure what I'm doing is right. I googled how to do it, and the Android guide says I should have to do…
rihekopo
  • 3,241
  • 4
  • 34
  • 63
32
votes
6 answers

Can't import org.apache.http.HttpResponse in Android Studio

I want to use these libraries in Android Studio: import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.DefaultHttpClient; I am following a…
Mohsin Anees
  • 698
  • 2
  • 9
  • 25
32
votes
9 answers

First run of Android Studio. Unable to access Android SDK add-on list

After trying to reinstall Android Studio, everything was fine until the first run. While it was 'fetching Android SDK component information', it gave me an error saying: Unable to access Android SDK add-on list I clicked on Setup proxy, clicked on…
TechnoSwag
  • 385
  • 1
  • 4
  • 11
32
votes
1 answer

Cannot resolve symbol GooglePlayServicesClient on new Android Studio Project

I just installed Android Studio 1.1.0 and created a new project. I created it with a Login Activity including Google+ login. As soon as the project opens, I see many errors in PlusBaseActivity.java. These seem to stem around the fact that…
Dan Grahn
  • 9,044
  • 4
  • 37
  • 74
32
votes
8 answers

How to Register New File Type Association with MP3

I am beginner with Android Studio. I have an MP3 file in my res\raw folder. When I sync project with Gradle files. I get the following dialog box: How do I allow for MP3 files in my project? I read this: Register new file type in Android, but I'm…
nu everest
  • 9,589
  • 12
  • 71
  • 90
32
votes
5 answers

Android Studio project folders not showing

I am unable to see the folders that are physically existing, this is the case. But in actual fact I have other folders as welll So what can I do?
JackyBoi
  • 2,695
  • 12
  • 42
  • 74
32
votes
8 answers

How to check what is the latest version of a dependency to use in gradle

I've always added dependencies like this: dependencies { compile 'com.android.support:mediarouter-v7:19.+' } but in the recent versions of Android Studio, they recommend not to use the + as it can lead to errors. How to know what's the latest…
mbmc
  • 5,024
  • 5
  • 25
  • 53
32
votes
4 answers

"No, missing feature: WATCH" when I try to run my smartphone app with wear app?

I have a smartphone app with a wear app that has been packaged inside of it, similar to the first two steps of this section: https://developer.android.com/training/wearables/apps/packaging.html#Studio I was originally told that my smartphone wasn't…
user1583010