use*_*899 27 android gradle android-studio android-gradle-plugin
我有Android Studio 0.8.9.到现在为止,它可以成功地与gradle文件同步,但今天当我打开它时,它给了我这个错误:
UnsupportedMethodException
Failed to set up Android modules in project 'Project': Unsupported method: SourceProvider.getJniDirectories().
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.
Run Code Online (Sandbox Code Playgroud)
你能帮帮我解决这个问题吗?谢谢.
Dan*_*ofr 15
为了解决这个问题,我将你的项目顶级build.gradle文件中的android-plugin从classpath'com.android.tools.build:grad:0.14.+'降级为classpath'com.android.tools.build:grad :0.13 +".
所以现在我的项目build.grade中的buildscript方法看起来像
buildscript {
repositories {
mavenCentral()
}
dependencies {
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.android.tools.build:gradle:0.13.+'
}
}
Run Code Online (Sandbox Code Playgroud)
我认为版本.14可能存在错误,我发送了错误报告.
| 归档时间: |
|
| 查看次数: |
12974 次 |
| 最近记录: |