android - 每当我在 android studio 中创建一个新项目时,我都会收到一个错误

标签 android android-studio

我安装了 android studio,当我点击新项目时,我得到类似的错误

enter image description here

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

最佳答案

"You should download the full zip package from http://services.gradle.org/distributions/gradle-1.6-bin.zip manually and copy this zip package to C:\Documents and Settings(Your name).gradle\wrapper\dists\gradle-1.6-bin\72srdo3a5eb3bic159kar72vok\

If it does works ,you had to re-install Android Studio and take this again.

If you use win7 64bit,Try to edit android-studio\bin\studio.bat

SET VM_OPTIONS_FILE=%IDE_BIN_DIR%\studio%BITS%.exe.vmoptions

to

SET VM_OPTIONS_FILE=%IDE_BIN_DIR%\studio%BITS%.exe

SET JRE=%JDK% IF EXIST "%JRE%\jre" SET JRE=%JDK%\jre SET BITS= IF EXIST "%JRE%\lib\amd64" SET BITS=64"

偷自 Gradle settings cannot be cast error

关于android - 每当我在 android studio 中创建一个新项目时,我都会收到一个错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17069824/

相关文章:

opencv - 在Android Studio中导入OpenCV SDK

android - Android Studio 是否有 Hierarchy Viewer 或 Layout Inspector?

android - 我在 Android Studio 中的第一个项目呈现问题

java - 在android中编码HexString

android - 从 Android 客户端连接到 Google Cloud Storage 的正确方法

Android:如何从编辑文本中提取具有 Bold Span 格式的单词并将它们添加到列表中。

Android GPS 始终返回相同的位置

java - 写入 android USB 端口并将其发送到 RS232 微型机器人端口

gradle - 如何在Android Studio中使用我自己的Android.mk文件

android - 如何在 Android Studio 中为 Kotlin 提取字段