Android Studio Could not find method runProguard() for arguments?错误的解决办法


/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/bin/java "- com.intellij.rt.execution.application.AppMain org.gradle.launcher.GradleMain --build-file /Users/Tom/Documents/Git_open_sources/android-material-drawer-template/app/build.gradleFAILURE: Build failed with an exception.* Where:Build file '/Users/Tom/Documents/Git_open_sources/android-material-drawer-template/app/build.gradle' line: 16* What went wrong:A problem occurred evaluating project ':app'.> Could not find method runProguard() for arguments [false] on BuildType_Decorated{name=release, debuggable=false, testCoverageEnabled=false, jniDebuggable=false, pseudoLocalesEnabled=false, renderscriptDebuggable=false, renderscriptOptimLevel=3, applicationIdSuffix=null, versionNameSuffix=null, minifyEnabled=false, zipAlignEnabled=true, signingConfig=null, embedMicroApp=true, mBuildConfigFields={}, mResValues={}, mProguardFiles=[], mConsumerProguardFiles=[], mManifestPlaceholders={}}.* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.BUILD FAILEDTotal time: 6.741 secsProcess finished with exit code 1
<span style="background-color: rgb(255, 255, 255);"></span>
<span style="background-color: rgb(255, 255, 255);"></span>
<span style="background-color: rgb(255, 255, 255);"></span>
<span style="background-color: rgb(255, 255, 255);"></span>
<span style="background-color: rgb(255, 255, 255);"></span>
<span style="background-color: rgb(255, 255, 255);"></span>
<span style="background-color: rgb(255, 255, 255);"></span>
  
apply plugin: 'com.android.application'android {compileSdkVersion 21buildToolsVersion "21.1.0"defaultConfig {    applicationId "com.poliveira.apps.materialtests"    minSdkVersion 11    targetSdkVersion 21    versionCode 1    versionName "1.0"}buildTypes {    release {        runProguard false        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'    }}}dependencies {compile fileTree(dir: 'libs', include: ['*.jar'])compile 'com.android.support:support-v4:21.0.0'//noinspection GradleDependencycompile "com.android.support:appcompat-v7:21.0.0"compile 'com.android.support:recyclerview-v7:21.0.0'}    

buildTypes {    release {        minifyEnabled false        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'    }}

Instead of "runProguard false" use

"minifyEnabled false"代替"runProguard false"就可以了



更多相关文章

  1. Android调用.NET Webservice报org.ksoap2.serialization.SoapPri
  2. Android(OpenCV) NDK开发: 0xdeadbaad(code=1)错误 及 关闭armea
  3. ionic android升级错误 exposed beyond app through Intent.getD
  4. Java工程中调用Android库出现“Stub!”错误
  5. 几个Android小错误解决方法
  6. Android(安卓)Studio Error:Execution failed for task ':app:tr
  7. Android(安卓)QQ 分享
  8. 【学习Android遇到的错误】关于Unable to instantiate activity
  9. 【android错误收集】android.view.InflateException

随机推荐

  1. Android动态获取定位权限(包括Android10.0
  2. 运行时改变Button的android:drawableTop
  3. android获取手机信息以及服务商信息
  4. android webview 保存cookie
  5. Android开发之Activity(二)——启动模式和t
  6. 程序中如何获取Android的Root权限
  7. Android(安卓)(Notification)消息推送机
  8. android RadioButton文字居中的方法
  9. ERROR Error parsing XML: unbound prefi
  10. android实现边框圆角