1. An error occurred when importing their project with R fileThe first thing we need to know is that Android Studio is based on the Gradle compilation mode, there is no Gen directory in the internal R file, but since it reported this error, there must be a reason. That is, Gradle compile error.
for each gradle will have its own compiled version of the Gradle, for different versions of Android studio and users may have different gradle, so when you are like someone else's project, Atudio back first compared to your local gradle and the original author's gradle version is the same, if the same can be directly bulid compile, if the version is not correct, it will automatically download the corresponding Gradle version. Of course in the celestial process is very slow, unless you have set up a proxy or buy a ladder, it is likely to fall in this step.
below I say a can use agent (red apricot)
as for how to set up, we own Baidu
Once the setup is complete, the download will be quick.
2.Android Studio is slow every time you run a project
Click Preference-->bulid-->gradle to select Offine work. This means working offline without having to check all the configuration information in Gradle ' (such as multi-channel packaging, obfuscation, etc.) every time Gradle .
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Android Studio FAQs