One, the
first kind of error :
The error log is generally the case: the project is using the unsupported version of the Android Gradle plug-in (0.9.2)
problem Analysis: The English meaning is that your project is using an unsupported version of Gradle. This is because the Androidstudio version is too high and is no longer supported for the lower version of the Gradle plugin. How to solve the problem, Androidstudio version certainly do not change, there are better features, such as memory analysis, so we can change the version of the Gradle plugin
Problem Solving: from where, whether it's Windows or Mac, go to the project directory, locate the Build.gradle file open, and modify the following code
As to what version to change, my suggestion is that you find a normal compile, run the project, into the directory to find the same file, and then changed to the same version, it is certainly not a problem. After modifying the re-open try, may have been successful, you can still have problems, see question two.
Two, the
second kind of error : the error log is generally: Unable to load class ' org.codehaus.groovy.runtime.typehandling.ShortTypeHandling ', of course the specific class may not be this, but the problem is a class ofProblem Analysis:is that we changed the reference configuration in question one, without changing its corresponding jar packageSolve the problem:into the project directory,/gradle/wrapper/has two files, one is a configuration file is a jar package, the same way, the normal copy of the project to cover.
Thirdly, the third kind of error: error log:Gradle DSL method not found: ' Runproguard 'Problem solving:Try
minifyEnabledinstead of
runProguard
Androidstudio Usage Issues Summary-common errors when importing (import) projects