- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在旧版本的 Android Studio 上创建了应用程序,当我在最新版本 (3.1.3) 中打开此应用程序时,应用程序无法运行,我看到了一个错误。
ERROR: Unsupported method: AndroidProject.getVariantNames().
The version of Gradle you connect to does not support that method.
To resolve the problem you can change/upgrade the target version of Gradle you connect to.
Alternatively, you can ignore this exception and read other information from the model.
最佳答案
我昨天遇到了同样的问题,我替换了 gradle-wrapper.properties
并更改了它:
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
还必须将 build.gradle
更改为:
dependencies {
classpath 'com.android.tools.build:gradle:3.3.0'
}
也许你也可以改变它
buildToolsVersion '25.0.0'
希望你能通过这些步骤解决。
关于java - 错误 : Unsupported method: AndroidProject. getVariantNames(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55050174/
我正在尝试使用 Android Studio 2.2 运行我的项目,但出现此错误 Unsupported method: AndroidProject.getPluginGeneration(). T
我在旧版本的 Android Studio 上创建了应用程序,当我在最新版本 (3.1.3) 中打开此应用程序时,应用程序无法运行,我看到了一个错误。 ERROR: Unsupported metho
我刚刚更新到 Android Studio 3.4 (Canary 5)。然后我打开我现有的项目(在 Android Studio 3.3 Beta 上完美运行)并收到此错误: ERROR: Unsu
我的 Gradle 同步失败,日志中出现以下错误消息: Gradle sync failed: java.lang.NoSuchMethodError: com.android.builder.mod
当我将一个 Eclipse 项目导入 Android Studio 时,我遇到了这个问题: Gradle 'XNote' 项目刷新失败 错误:无法确定接口(interface) com.android
我是一名优秀的程序员,十分优秀!