Androidstudio Usage Issues Summary-common errors when importing (import) projects

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.