ANDROID STUDIO 3 Studio is the official IDE for development, and includeseverything you need lớn build apps.

Bạn đang xem: Android studio 3

To get the latest version, clichồng Help > Check for updates( Studio > Check for updates on macOS).

You can also tải về Studio here.

If you encounter problems in Studio, kiểm tra theKnown issues orTroubleshoot page.

For the lademo news on releases, including a list of notable fixes in eachpĐánh Giá release, see therelease updates.

For information on what’s new in the Plugin for Gradle, see itsrelease notes.

4.1 (August 2020) Studio 4.1 is a major release that includes a variety of new featuresand improvements.

4.1.3 (March 2021)

This minor update includes various bug fixes. To see a menu of notable bug fixes, read the related post on the Release Updates blog.

4.1.2 (January 2021)

This minor update includes various bug fixes. To see a menu of notable bug fixes, read the related post on the Release Updates blog.

4.1.1 (November 2020)

This minor update includes various bug fixes. To see a danh sách of notable bug fixes, read the related post on the Release Updates blog. Gradle plugin 4.1.0

The lakiểm tra version of the Gradle plugin includes many updates. To learnmore, read the full Gradle plugin release notes.

New Database Inspector

Inspect, query, & modify your databases in your running app using the newDatabase Inspector. To get started, deploy your app to lớn a device runningAPI Level 26 or higher, and select View > Tool Windows > Database Inspectorfrom the thực đơn bar.


To learn more, see Debug your database with the Database Inspector.

Run the Emulator directly in Studio

You can now run the Emulator directly in Studio. Use thisfeature to conserve screen real estate, khổng lồ navigate quickly between the emulator& the editor window using hotkeys, & to lớn organize your IDE and emulatorworkflow in a single application window.


To learn more, see the Emulator documentation.

Use TensorFlow Lite models

ML Model Binding makes it easy for you to directly import .tflite modelfiles & use them in your projects. Studio generates easy-to-useclasses so you can run your mã sản phẩm with less code and better type safety.

Supported models

The current implementation of ML Model Binding supports imageclassification & style transfer models, provided they are enhanced withmetadata. Over time, support will be expanded to lớn other problem domains, likeobject detection, image segmentation, & text classification.

A wide range of pre-trained models with metadata are provided onTensorFlow Hub. You can alsoadd metadata lớn a TensorFlow Lite Model yourself, as is outlined in Adding metadata to lớn TensorFlow Lite Model.

Import a Mã Sản Phẩm file

To import a supported model file, follow these steps:

mở cửa the TensorFlow Lite model import dialog in the File thực đơn atFile > New > Other > TensorFlow Lite Model.Select the .tflite Mã Sản Phẩm tệp tin that you previously downloaded or created.Clichồng Finish.

This imports the Mã Sản Phẩm file into lớn your project & places it in the ml/folder; if the directory doesn't exist, Studio will create itfor you.


View Mã Sản Phẩm metadata & usage

To see the details for an imported mã sản phẩm và get instructions on how to use itin your phầm mềm, double-cliông chồng the Model tệp tin in your project khổng lồ open themã sản phẩm viewer page, which shows the following:

Model: High-level description of the modelTensors: Description of đầu vào & output tensorsSample code: Example of how to lớn interface with the Model in your app

Here is an example using mobilenet_v1_0.25_160_quantized.tflite:


As the example demonstrates, Studio creates a class calledMobilenetV1025160Quantized for interacting with the Model.

If the mã sản phẩm does not have metadata,this screen will only provide minimal information.

Known issues và workaroundsModels with Input and Output data types different from DataType.UINT8 orDataType.FLOAT32 are not supported.

This feature is still under development, so please provide feedbaông xã orreport bugs.

Native Memory Profiler

The Studio Memory Profiler now includes a Native sầu Memory Profiler forapps deployed khổng lồ physical devices running 10 or later. With the NativeMemory Profiler, you can record memory allocations and deallocationsfrom native sầu code & inspect cumulative statistics about native objects.


To learn more about the Native Memory Profiler, seeInspect your app's memory usage with Memory Profiler.

Known issues & workarounds

System Trace UI: Easier selection, new analysis tab, và more frame rendering data

The System Trace UI in the Studio profiler includes the followingimprovements:

Box selection: In the Threads section, you can now drag your mouse topersize a box selection of a rectangular area, which you can zoom inlớn byclicking the Zoom khổng lồ Selection

button on the top right (or use the M keyboard shortcut). When you dragvà drop similar threads next lớn each other, you can select across multiplethreads to lớn inspect all of them at once. For example, you may want topersize analysis on multiple worker threads.


Summary tab: The new Summary tab in the Analysis panel displays:

Aggregate statistics for all occurrences of a specific event, such as anoccurrence count and min/max duration.Trace event statistics for the selected occurrence.Data about thread state distribution.Longest-running occurrences of the selected trace event.

Xem thêm: Top 5 Ứng Dụng Kiểm Tra Pin Android Tốt Nhất, Accu​Battery


To navigate khổng lồ another occurrence, select another row from the table.

For basic usage instructions on how to record a system trace, see theRecord traces section ofInspect CPU activity with CPU Profiler.

Windows users: If labels are missing in the thread activity timeline when you profile your ứng dụng, see the known issues for a workaround. This issue is fixed in the 4.2 release.

Standalone profilers now available

With the new standalone profilers, it's now possible to lớn protệp tin your app withoutrunning the full Studio IDE.

For instructions on using the standalone profilers, see Run standalone profilers.

Dagger navigation support

* Studio makes it easier to navigate between your Dagger-related codeby providing new gutter actions và extending tư vấn in the Find Usageswindow.

New gutter actions: For projects that use Dagger, the IDE provides gutteractions that help you navigate between your Dagger-annotated code. For example,clicking on the

gutter action next lớn a method that consumes a given type navigates you tothe provider of that type. Conversely, clicking on the
gutter action navigates you to lớn where a type is used as a dependency.

Find Usages node: When you invoke Find Usages on a provider of a giventype, the Find window now includes a Dependency consumer(s) node thatlists consumers of that type. Conversely, invoking this action on a consumerof a Dagger-injected dependency, the Find window shows you the provider ofthat dependency.

Material Design Components: Updated themes & styles in new project templates

* Studio templates in the Create New Project dialog now use MaterialDesign Components (MDC) and conform khổng lồ updated guidance for themes và styles by default.Updates include:

MDC: Projects depkết thúc on inbuild.gradle. Base tiện ích themes use Theme.MaterialComponents.*parents and override updated MDC color & “on” attributes.màu sắc resources: Màu sắc resources in colors.xml use literal names(for example, purple_500 instead of colorPrimary).Theme resources: Theme resources are in themes.xml (instead ofstyles.xml) và use Theme. names.Dark theme: Base application themes use DayNight parents and are splitbetween res/values và res/values-night.Theme attributes: Màu sắc resources are referenced as theme attributes(for example, ?attr/colorPrimary) in layouts và styles lớn avoid hard-coded colors.

IntelliJ IDEA 20đôi mươi.1

The core Studio IDE has been updated with improvements fromIntelliJ IDEA through the 20trăng tròn.1 release, including a new Commit windowthat enables version control operations và a new Zen mode that can be toggledby selecting View > Appearance > Enter Distraction Free Mode.

To learn more about the improvements in version 20trăng tròn.1, see the following page:

IDE configuration directory changes

The locations of user configuration directories have been changed tothe following:


Syntax: %APPDATA%Google

Example: C:UsersYourUserNameAppDataRoamingGoogle hesuggestr.comStudio4.1


Syntax: ~/Library/Application Support/Google/

Example: ~/Library/Application Support/Google/thesuggestr.comStudio4.1


Syntax: ~/.config/Google/

Example: ~/.config/Google/thesuggestr.comStudio4.1

These new directory locations are consistent withrecent updates khổng lồ IntelliJ IDEA,the IDE on which Studio is based.

Note: If Studio doesn't restart after an upgrade, you may need lớn delete theconfiguration directory from a previous Studio version. See theknown issues page for moreinformation.

Kotlin 1.3.72 Studio 4.1 bundles Kotlin 1.3.72, which includes a number of fixeskhổng lồ improve sầu Kotlin highlighting, inspections, và code completion. Cheông chồng outthe 1.3.72 Kotlin changelogfor details.

Custom view preview

When creating a custom view (for example, by extending theView orButton class), Studio now showsyou a pđánh giá of your custom view. Use the dropdown thực đơn in the toolbar toswitch between multiple custom views, or cliông chồng the buttons lớn wrap vertically orhorizontally to lớn the nội dung.


Note: If you don’t see your changes in the pĐánh Giá, select Build > MakeProject from the thực đơn bar.

Symbolication for native sầu crash reports

When a crash or ANR occurs in native code, the system produces a stachồng trace,which is a snapshot of the sequence of nested functions called in your programup khổng lồ the moment it crashed. These snapshots can help you lớn identify and fixany problems in the source, but they must first be symbolicated to lớn translate themachine addresses baông xã inlớn human-readable function names.

If your ứng dụng or game is developed using native sầu code, lượt thích C++, you can now uploaddebug symbols files lớn the Play Console for each version of your phầm mềm. The PlayConsole uses these debug symbols files khổng lồ symbolicate your app's stack traces,making it easier to analyze crashes và ANRs. To learn how to upload debugsymbols files, see Native crashtư vấn.

Apply Changes

To help you be more productive as you iterate on your ứng dụng, we've made thefollowing enhancements lớn Apply Changes for devices runningthesuggestr.com11 Previews 3 or higher:

Faster deploy speeds

We've invested heavily in optimizing your iteration speed by developing a methodto deploy and persist changes on a device without installing the application.After an initial deploy, subsequent deploys lớn thesuggestr.com11 devicesusing either Apply Code Changesor Apply Changes và Restart Activityare now significantly faster.

To learn more about the difference between these two actions, seeApply Changes.

Support for additional code changes

For devices running thesuggestr.com11 PĐánh Giá 3 or higher, youcan now add methods and then deploy those changes khổng lồ your running app byclicking either Apply Code Changesor Apply Changes and Restart Activity.

4.0 (May 2020) Studio 4.0 is a major release that includes a variety of new featuresand improvements.