AndroidStudio run up those pits when first encountered by novice App

Scenes

When you read a tutorial Android, happily you want to run a HelloWorld first when we got there, Android Studio new project always error.

Will not compile passed, the Run button gray, not a virtual machine, a simple Hello World has as yet not up and running.

Note:

Blog:
https://blog.csdn.net/badao_liumang_qizhi
public concern number of
programs overbearing ape
acquisition-related programming e-books, tutorials and push for free download.

achieve

The first is the Android Studio installed, and newcomers often do not know how to download and install and configure.

AndroidStudio download and install tutorial (graphic tutorial):

https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/103672471

Then again after you install AS, will take up a lot in the default C disk space, a long time, it will be great.

AndroidStudio modify the default configuration of the C drive folder (.android.gradle.AndroidStudio) and modified to avoid stepping in the pit:

https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/103791948

The following problems may occur when the default C drive configuration in the above modifications:

AndroidStudio报错:GradleSyncIssues-Could not install Gradle distribution from...:

https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/103790772

AndroidStudio报错:Emulator: I/O warning : failed to load external entity "file:/C:/Users/Administrator:

https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/103791006

AndroidStudio error when updating: Connection Error, Temp directory inside installation:

https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/103791077

AndroidStudio报错:Could not download gradle.jar:No cacahed version available for offline mode:

https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/103791733

There is where I do not know how to add a virtual machine

Open the Android Studio virtual machine management to find the upper right button, click the button Creat

 

 

Select models vary.

 

 

Click Next

 

 

Click Next, configure the names, click Finish.

 

 

The first new HelloWorld often encounter problems compiling or gradle being given.

If a problem occurs gradle being given the same as above, after downloading the appropriate gradle or resolve other related issues in accordance with the error prompt

Click the upper right corner AS elephant icon button Sysc Project with Gradle file, an error message is usually the console output below, until all green, without being given

Only mission is, after modifying the code, you can click the button on top of the hammer-like compile.

In general the following are all green, to preview the layout file and display the normal triangular shape above the Run button to click, and Run Configureation the right of the hammer will not error.

Its first run will be configured as a Template app.

 

 

 

Finally, the effect of running virtual machines

 

 

Guess you like

Origin www.cnblogs.com/badaoliumangqizhi/p/12130955.html