简体   繁体   中英

Gradle Error for Android Studio

I'm trying out Android Studio on OS X and am running into a mysterious error message. I went through the Google guide to building a simple UI , but when I finished writing the XML file and hit Run in the IDE, I get the following message ("Test2" is the name of the project):

Gradle: Execution failed for task ':Test2:validateDebugSigning'.
> Could not find matching constructor for: org.gradle.tooling.BuildException(java.lang.String)

I have never developed an android app before, so I don't know how common this is. I did a search for this error and found no one encountering the same problem.

I tried the solution from Abhan and I get a new error message:

Error: org.jetbrains.plugins.gradle.settings.GradleSettings cannot be cast to org.jetbrains.plugins.gradle.settings.GradleSettings

It warns you that android plug-in task validateDebugSigning cannot access the debug key. Check your accessibility to the debug.keystore.

On linux or OS X, the default location is ~/.android. On windows, it's in C:\\Documents and Settings\\.android\\ or C:\\Users\\.android.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM