SORU
19 Kasım 2014, ÇARŞAMBA


Hata:(26, 0) Gradle DSL yöntem bulunamadı: 'runProguard()'

'com.android.tools.build:gradle:0.14. ' gradle ile android studio 0.9.3 kullanıyorum

eklenti geçerlidir: 'com.android.'. uygulama

android {
    compileSdkVersion 19
    buildToolsVersion '20.0.0'

    defaultConfig {
        applicationId "xxx.xxx.xxx"
        minSdkVersion 16
        targetSdkVersion 19
        versionCode 1
        versionName "1.0.11"
    }

    signingConfigs{
        releaseConfig{
            storeFile file("xxxxxxx")
            storePassword = "xxxx"
            keyAlias = "xxxx"
            keyPassword = "xxxx"
        }
    }

    buildTypes {
        release {
            runProguard false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            signingConfig signingConfigs.releaseConfig

            // adds version to file name
            applicationVariants.all { variant ->
                def file = variant.outputFile
                variant.outputFile = new File(file.parent, file.name.replace(".apk", "-"   defaultConfig.versionName   ".apk"))
            }
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    // You must install or update the Support Repository through the SDK manager to use this dependency.
    // You must install or update the Support Repository through the SDK manager to use this dependency.
    // You must install or update the Google Repository through the SDK manager to use this dependency.
    // You must install or update the Support Repository through the SDK manager to use this dependency.
    compile 'com.android.support:support-v4:19. '
    compile 'com.android.support:appcompat-v7:19. '
    compile 'com.mcxiaoke.volley:library:1.0.6'
    compile 'com.google.code.gson:gson:2.2. '
}

Proje önce bu dosyada herhangi bir değişiklik olmadan derlenmiş Alıyorum: Hata:(26, 0) Gradle DSL yöntem bulunamadı: '() runProguard'

Bunu nasıl düzeltebilirim?

CEVAP
21 Kasım 2014, Cuma


Gradle dosyasında runProguard yerine, minifyEnabled kullanmayı deneyin. Bu sorunu çözmek gerekir. runProguard itiraz ve yakında çalışmamaya.

EDİT

minifyEnabled, gradle kullanmak için sürüm 2.2 veya üzeri güncellenmelidir.

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • LardTardProductions's channel

    LardTardProd

    10 NİSAN 2009
  • Strata1000

    Strata1000

    28 EYLÜL 2009
  • xdadevelopers

    xdadeveloper

    25 Aralık 2009