Android First lesson: the Environment of Android studio and the operation of the real machine and the problems encountered

Source: Internet
Author: User

as Download:

Https://developer.android.com/studio/index.html

installation of AS:

Android Studio, SDK, virtual device are installed, the installation path should not be selected in the C drive

To create a new project:

The creation process is no longer a part of the web.

Real-machine operation:

After the project is written, use the USB cable to connect the Android phone to the computer ( Note: The mobile phone must open the developer option and then turn on the USB debugging function ), click on the device detected after the run to choose their own phone (usually only one, point that good), after the successful operation, This software is automatically installed on your phone.

problems encountered:1. When the default path is modified at the time of installation, the first open as will cause an error in SDK location not found.

Solution: do not leave it to cancel directly into as, through configure, project defaults, projuct structure set the SDK path to the installation path of the SDK you chose when you installed it.

2. If you create only Hello World, select empty activity when creating a project, but if you create a basic activity and select the real machine to run it will indicate that my phone version is too low.

solution: Download API 19 via Android SDK Manager (currently the majority of Android device versions are already greater than or equal to API 19 so it is compatible with most devices) and API 23 (this is my mobile version, can be selected according to the actual situation to download).

The final recommendation: If you can best use the real machine for debugging, the virtual machine takes up memory and runs very slowly.

Android First lesson: the Environment of Android studio and the operation of the real machine and the problems encountered

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.