Android # Android Development Environment setup,

Source: Internet
Author: User

Android # Android Development Environment setup,

 

  • Android # Android Development Environment Construction
    • 1. Download: Google official website in China server https://developer.android.google.cn/index.html
      • 1. Click "get Android Studio" on the homepage"
      • 2. After the jumpWait until the webpage is loaded. (If X is displayed in the upper left corner, the webpage is not loaded)Click "Download Android Studio" in green"
        • The selection box is displayed. If the button at the bottom of the page is displayed, the page is not loaded.
    • 2. Installation
      • Click "Install"> "custome" in the installation configuration.
        • In this way, the Android SDK can pretend to be another disk.
        • Installation location directory structure:
          • D: \ Android Studio
          • D: \ Android \ Sdk
        • In addition to the two selected by default, you must also select the following
          • 1. Performance (Intel r haxm) Intel graphics card accelerator for virtual machines
          • 2. Android Virtual Device debugging program, which will be used later.
        • You will be asked to set the simulator size later. The default recommended size is enough, as if it was 2 GB.
        • The download will take some time .. Wait...
    • 3. Configuration
      • Open Android Studio> new project> set the project location. Select the default value for all other options.
      • Q: Is there an Error after creating a new project?
        • Failed to find target with hash string 'android-26' in: D: \ android \ Sdk
        • Consult IDE log for more details (Help | Show Log)
      • Solution:
        • 1. Find gradle → wrapper → gradle-wrapper.properties on the left side of the project (double-click it to open)
        • 2. There is a distributionUrl =
          • There is a slash after https. Remember to remove it and then download it. Because the address is different from each version, remember this.
          • Https\: // Services.gradle.org/distributions/gradle-4.1-all.zip
        • 3. After the download is complete, find
          • C: \ Users \ your USERNAME \. gradle \ wrapper \ dists \ gradle-4.1-all \ bzyivzo6n839fup2jbap0tjew
          • Put the downloaded package in (do not decompress it) and delete all the other items.
        • 4. Disable Android Studio and open it again. This error will occur when the circle in the center is completed:
          • Failed to find target with hash string 'android-26' in: D: \ android \ Sdk
        • 5. Click the blue font below the error prompt to install the tool:
          • Install missing platform (s) and sync project
          • Translation: Installing the lost platform and synchronizing the Project License
        • 6. There will still be errors after the installation, and then you can click the link in blue font to install what is missing.
        • 7. Finally, wait for the following small circle to complete, and the project synchronization is complete. No error is reported ..
        • 8. Click Build> Build APK (s) in the top column)
        • 9. Wait until the build is complete. The following Event Log will be displayed.
          • APK (s) generated successfully
        • 10. Android Studio can package the apk successfully.
        • Solve the problem !!!!! ✿ ヽ (° ▽ ° ).
        • Solve the problem !!!!! ✿ ヽ (° ▽ ° ).
        • Solve the problem !!!!! ✿ ヽ (° ▽ ° ).
      • Error cause:
        • At the beginning, we installed Android Studio. By default, it asked us to install Android API 27, but the projects we need to generate require API 26 and ,. We don't have one, so we need to download all Android 8.0 (API 26.
        • API 27 has no released version, but only one simple API.
        • We need to release at least 8.0 of the system's API 26.

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.