It's been a long time not to open Android studio to open it today and find that the previously configured development environment is not available!
"R." In the project Turn red, run the result is as follows, can say very strange, the computer has not moved, how to return a matter?
So stackoverflow a bit:
To find something that might be useful:
"This bug happens when the versions of SDK, Build Tools and Gradle Plugins doesn ' t match (in terms of Compatibili TY). The solution is to verify whether you are using the latest version of them or not. The Gradle plugins is placed in the build.gradle of the project, and the other versions is on the build.gradle of the MO Dule. For example, for SDK, you must use the Build Tools 23.0.1 and Gradle plugins version 1.3.1. "
At this point, I think there should be some things package updated, some packages did not update caused by the mismatch. Or maybe the 360 software put something in it as poison.
Here are 3 things in the version, something on my Computer:
1, SDK: (In My computer's location C:\USERS\ADMINISTRATOR\APPDATA\LOCAL\ANDROID\SDK)
Download the latest sdk,as:file/setting/android SDK/SDK platforms/Choose the latest Android API download, here with API 27.
2. Build Tools:
As will download the corresponding tools based on the version number written on the. gradle file. Open the Build.gradle file under the Apps folder.
Modify the two parameters. Change to the latest version and build tools can download it automatically. (if updated later, go to Baidu, Google to find the latest correspondence.) )
Compilesdkversion 27
Buildtoolsversion "27.0.3"
3, Gradle Plugins: (In My computer's position: C:\Program files\android\android studio\gradle\gradle-4.7-all\gradle-4.7)
The correspondence between as and Gradle versions is as follows, I as is 2.3.3 version, so as long as it is more than 3.3 gradle can be used. I'm using 4.7 here.
Problem solved. Ok
Summing up, this question should be 360 manslaughter the part of the file in this package is not available, because it was previously configured, I checked myself and did not set up Automatic Updates, each update is required I confirm. So when you are dealing with this problem, turn off the 360.
In short, this problem occurs, as long as the update of the 3 parts should be able to solve!
Android Studio Bug:aidl is missing solution