Original Android Development First Step

Source: Internet
Author: User

Developing with Android-studio

The latest Android-studio program when writing an article download: https://dl.google.com/dl/android/studio/ide-zips/3.0.0.5/ Android-studio-ide-171.4163606-windows.zip

For more versions, refer to: http://www.androiddevtools.cn/

You can use the genymotion virtual machine to download and register your account on a foreign website.

You can also use Android-studio's own virtual machine, or you can take an Android phone to debug.

After downloading the compressed package, extract to the D:\Program Files\android-studio directory, the Studio64.exe program to create desktop shortcuts, in the future to start the Android-studio can be directly desktop double-click Run.

JDK download and installation is not explained, remember to add the environment variable java_home.

In the environment variable of the operating system, add the Path variable; X:\...\sdk\platform-tools which x:\ ... The SDK is the Android SDK directory. Then test adb version in the command line to see that the version is set up.

Next go to the Android-studio program, the initial interface is as follows:

Click Start a new Android Studio project to start the first Android program.

After creating a new project, click on the icon in the top right corner to download the SDK platforms

Because of the use of real machine debugging, the phone connected to the computer, and turn on the debug mode (specific reference to each mobile phone, I use the Huawei mobile phone into the debug mode method: Set-up about mobile phone-click Version number seven or eight times, you are prompted to say enter the developer mode. )

Click on the Edit Configurations menu to set the debug device Target-USB device.

Now it's time to run our first Android app on your Android phone, but if it doesn't work, you can click on the Android Profiler and see if your phone is prompting you for an authorized device.

Original Android Development First Step

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.