Android项目编译不通过,Android Studio。不能编译/建立我的项目更新

更新我的Android工作室0.5.1刚才和面临这么多问题后:Android Studio。不能编译/建立我的项目更新

这是我的build.gradle文件:

buildscript {

repositories {

maven { url 'http://download.crashlytics.com/maven' }

}

dependencies {

}

}

apply plugin: 'android'

repositories {

maven { url 'http://download.crashlytics.com/maven' }

}

android {

compileSdkVersion 19

buildToolsVersion '19.0.3'

defaultConfig {

minSdkVersion 14

targetSdkVersion 19

versionCode 1

versionName "1.0"

}

signingConfigs {

release {

storeFile file('dsc.jks')

storePassword 'dscneo'

keyAlias 'dsc'

keyPassword 'dscneo'

}

}

buildTypes {

debug {

versionNameSuffix '-DEBUG'

}

beta {

versionNameSuffix '-BETA'

}

release {

runProguard false

proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'

signingConfig signingConfigs.release

}

}

packagingOptions {

exclude 'META-INF/DEPENDENCIES'

exclude 'META-INF/NOTICE'

exclude 'META-INF/LICENSE'

exclude 'META-INF/LICENSE.txt'

exclude 'META-INF/NOTICE.txt'

exclude 'META-INF/ASL2.0'

}

}

dependencies {

compile 'com.android.support:appcompat-v7:+'

compile files('libs/gson-2.2.4.jar')

compile files('libs/gson-2.2.4-sources.jar')

compile files('libs/volley.jar')

compile files('libs/gson-2.2.4-javadoc.jar')

compile project(':HorizontalVariableListView')

compile files('libs/sugar-1.2.jar')

compile 'com.crashlytics.android:crashlytics:1.+'

compile project(':shopify_view_pager')

compile project(':shopify_smoothProgressBar_library')

compile files('libs/butterknife-4.0.1.jar')

compile project(':shopify_sliding_pane_library')

}

这是提示错误:

Gradle 'shopping-app-android' project refresh failed:

Build script error, unsupported Gradle DSL method found: 'release()'!

Possible causes could be:

- you are using Gradle version where the method is absent

- you didn't apply Gradle plugin which provides the method

- or there is a mistake in a build script

请帮忙!

我刚开始使用Android Studio。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值