New features and installation of Android studio 3.0

Android studio is the official ide of Android. It is designed for Android, which can speed up your development and help you build the best applications for each Android device. It provides tools tailored for Android developers, including rich code editing, debugging, testing and performance analysis tools.

1、 What's new in Android studio 3.0

(1) . core ide changes we upgraded the basic ide from IntelliJ 2016.2 to 2017.1.2, and added many new functions in 2016.3 and 2017.1, including parameter prompt, semantic highlighting, instant results in search, etc.

Many new lint checks.

The immediate run debugging problem 234401 should be solved now. If the program pauses at a breakpoint, the application restarts. However, if the application does not pause at the breakpoint, it can only be restarted when the method implementation changes, and hot plug should work.

(2) . kotlin language Android studio 3.0 includes support for kotlin language. Kotlin can be integrated into the project by converting java files to kotlin (click code > Convert java files to kotlin files), or by creating a new kotlin enabled project using the new project wizard.

(3) . support Java 8 language features Android studio 3.0 introduces built-in support for Java 8 libraries and some Java 8 language features. Jack no longer needs it. You should first disable Jack's improved Java 8 support built into the default tool chain.

(4) . new Android profiler the new Android Profiler in Android studio 3.0 provides a unified, real-time view of application activity. The Android profiler window replaces the Android monitor window. To open Android profiler, follow these steps: click View > tools windows > Android profiler (you can also click Android Profiler in the toolbar). Select the device and application process to configure from the Android profiler toolbar. If you have connected the device via USB but do not see it, make sure USB debugging is enabled. Click the network, CPU, or memory timeline to open a more detailed view of each analyzer.

(5) . instant application support Android studio 3.0 allows you to use two new module types instant application module and function module to create instant apps in the project.

(6) . APK debugger the new APK debugger in Android studio 3.0 allows you to configure and debug apks without building them from an Android studio project, as long as they are debuggable.

(7) . new device file explorer the new device file explorer tool window allows you to interact seamlessly with the file system of the connected device.

You can click to view various files in Android studio and copy the files to your computer. This function replaces the previous device file system interaction through DDMS.

(8) Support Android o developers to preview a new adaptive icon wizard, which allows you to create new adaptive launcher icon resources and preview how they will be displayed on different devices. To start the adaptive icon wizard, right-click the folder in the / res project and click New > Image assets > launcher icon (adaptive and Legacy).

New XML font preview, font selection tool and support for downloadable fonts.

(9) New templates for. Android Android studio 3.0 includes a new set of templates in the new project and new module wizards, so you can start developing IOT devices using Android things.

(10) Insert layout editor improved and updated component tree with improved drag and drop view

New error panel

View new support for barriers and groups

Enhance chain creation

(11) Layout inspector improves the layout checker in Android studio 3.0, including new enhancements that make it easier to debug problems with application layout, including classifying properties into common categories and grouping new search functions in the view tree and properties panels. To open the layout checker, click Tools > Android > layout checker.

(12) . Google's Maven repository Android support library Maven dependencies can now be used outside the Android SDK manager in the new Maven repository. Combined with the command-line SDK manager tool and gradle, this new distribution method simplifies Maven dependency management using a continuous integration system. To use the new Maven repository, add the URL to build.gradle in the repository block of the file, as follows:

Repository {maven {URL“ https://maven.google.com ” } }

(13) Improvements to the. APK analyzer show fields other than previously available packages, classes, and methods

Show and hide new filtering options for fields and methods at the top

In the tree view, the nodes shown in italics are references that are not defined in the DEX file

For apks with Proguard build enabled, you can load Proguard mapping files that add functionality to the DEX viewer

(14) . new Android plug-ins for gradle when using the new plug-ins for these projects, you should experience the following: faster configuration time due to delayed dependent resolution.

Variation aware dependency solutions apply only to the projects and variations you are building.

Faster incremental build times when simple changes are applied to code or resources.

Migration to new plug-in description address: https://developer.android.google.cn/studio/build/gradle-plugin-3-0-0-migration.html

(15) . use cmake 3.7 or later

(16) . the last two new features of the new Android simulator can be viewed directly on the official website at: https://developer.android.google.cn/studio/preview/features/index.html#cmake

2、 Android studio 3.0 installation

It is recommended to use Google browser before downloading, because many descriptions in the download address are in English, which can be translated into simplified Chinese with one click.

The official website of Android studio is: https://developer.android.google.cn/studio/index.html

Because Android studio 3.0 is a preview version, click preview

Click to download.

Installation precautions: first, there are two situations. The first is that your computer has Android studio 2.3 installed; The second is that Android studio 2.3 is not installed.

(1) . stable version installed:

The following box will pop up during installation:

By default, the first option is selected. To change to the third option, you must pay attention to the SDK if you have installed 2.3, because the compiled version updates of 2.3 and 3.0 are inconsistent and will conflict. This is the most important part of installation! After downloading a series of resources, the following box may pop up when opening:

Just click cancel without setting the proxy port. In this way, the installation is basically smooth. Additional: if the previous project is opened after installation, the following situations may occur:

This requires us to download the latest version of gradle. We can download it on gradle's official website at: https://gradle.org/ Put the downloaded zip package and unzipped package in the folder of the corresponding version of gradle. Gradle path view:

After playing, restart Android studio 3.0.

(2) . the stable version is not installed: if the stable version is not installed, you can directly install it with the default option!

I'm sorry for my hasty writing and mistakes.

The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>