Android Studio installation tutorial and gradle configuration

1. Prepare the dmg file and gradle-4.6-all.zip file of android studio .

2. Double-click to open and drag into Applications.

           

      Then it appears:          

           

3. Open the finder on the mac and then open the application android studio.

           

       Choose Open.

           

       Choose not to import.

           

       Choose Cancel. Just keep going next. Waiting for the download to complete, it will take a little longer.

           

4. Build a new project, just keep next. But there will be several problems:

       a) Always syncing

             

      b) Always update updating

             

      c) The design page shows waiting for build to finish

             

      For the first question . Need to configure the gradle file. Enter finder-->open /user/xxx/.gradle/wrapper/dists/gradle-4.6-all/bcst21l2brirad8k2ben1letg/, put the downloaded gradle compressed file into the file, and put the .part file in the folder The suffix is ​​changed to .ok. Then, open the terminal -> enter ifconfig to view the local IP address--> select copy ipv4--> enter AS--> Android Studio--> Preferences--> find HTTP proxy--> select manual proxy configuration--> Select HTTP and paste in the host name, the port number is 80. Re-sync and uncheck https. This problem will no longer occur.

      For the second question . file--> Invalidate Caches/Restart --> Invalidate and Restart

      For the third question . Just sync gradle. The operation method is: command+shift+A -> input sync project with gradle files.

Guess you like

Origin blog.csdn.net/VinWqx/article/details/86658982