Android Environment configuration

Source: Internet
Author: User

Android Environment configuration

Because of network reasons, for Android Studio configuration There are many difficult to reference places, here to record, mainly for network problems, install other issues please refer to other blogs

Before you continue, make sure you have the agent software and have a general idea of how the agent works

    • Download

Google Chinese developers official website, download all the way click Install can

    • SDK Download

Need to set up a network proxy first

Set the agent, note that 1080 is the local port specified by the agent software, the general default 1080

    • Gradle Synchronization Failure

Because Gradle packets will go over HTTPS, additional settings are required

Add after gradle.properties, the port corresponds to the above can be

systemProp.http.proxyHost=127.0.0.1systemProp.http.nonProxyHosts=localhost, 127.0.0.1org.gradle.jvmargs=-Xmx1536msystemProp.http.proxyPort=1080systemProp.https.proxyHost=127.0.0.1systemProp.https.nonProxyHosts=localhost, 127.0.0.1systemProp.https.proxyPort=1080android.enableAapt2=false
    • Compile Error AAPT2 Error
      Turn off APPT2 compilation in Gradle.properties, which is the last line modified above

      android.enableAapt2=false

Android Environment configuration

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.