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
Google Chinese developers official website, download all the way click Install can
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