无法解决此错误,我已更新Android工作室.走了throungh其他这个解决方案,但没有为我工作,请帮助..
构建脚本错误,发现不支持的Gradle DSL方法:'release()'!可能的原因可能是:
- 您正在使用Gradle版本,其中方法不存在 - 您没有应用提供方法的Gradle插件 - 或者构建脚本中存在错误Gradle设置
Gradle版本 - 0.9
主要的gradle.
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.9.+'
}
}
apply plugin: 'android'
android {
compileSdkVersion 19
buildToolsVersion "19.0.0"
}
Run Code Online (Sandbox Code Playgroud)
Project Gradle文件
apply plugin: 'android'
repositories {
mavenCentral()
}
android {
compileSdkVersion 17
buildToolsVersion '18.0.1'
defaultConfig {
minSdkVersion 8
targetSdkVersion 17
}
signingConfigs {
release {
storeFile file('dsc.jks')
storePassword …
Run Code Online (Sandbox Code Playgroud) android gradle android-studio build.gradle android-gradle-plugin
我的android-studio logcat没有显示过滤器选项.我认为一些设置已经改变.