Failed to generate a signed APK in Android Studio, giving me an error with proguard-rules.txt not found?

Hi, I am new to Android Studio to create and create a signed apk file. I tried generating a lot of the APK file a lot, but I was stuck on this.

I found some links to create a signed apk file, please check below.

http://xda-university.com/as-a-developer/getting-started-android-studio http://www.techotopia.com/index.php/Generating_a_Signed_Release_APK_File_in_Android_Studio

I followed the same way, but in this process it does not show the Run Proguard parameter for checking and generating the apk file, see below.

enter image description here

enter image description here

Please check my code below here:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 'Google Inc.:Google APIs:17'
    buildToolsVersion "21.1.2"

    defaultConfig {
        applicationId "com.wasl.properties"
        minSdkVersion 9
        targetSdkVersion 17
        versionCode 8
        versionName "2.1"
    }

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

dependencies {
 compile 'com.google.android.gms:play-services:+'
 compile files('libs/commons-codec-1.4.jar')
 compile files('libs/FlurryAnalytics_3.3.0.jar')
 compile files('libs/ksoap2-android-assembly-3.0.0-jar-with-dependencies.jar')
 compile files('libs/universal-image-loader-1.8.5-with-sources.jar')
 compile 'com.android.support:support-v4:21.0.3'
}

Please help, thanks in Advance.

+4
1

build.gradle . proguard ( minifyEnabled) , ( ).

proguard ( , , ), release:

buildTypes {
    release {
    }
}
+1

Source: https://habr.com/ru/post/1569164/


All Articles