FileNotFoundException on proguard-rules.pro file

前端 未结 6 1235
逝去的感伤
逝去的感伤 2021-01-17 19:05

I\'m using Android Studio v.1.0 My build file :

  buildTypes {

    debug {
        minifyEnabled false
        proguardFiles getDefaultProguardFile(\'prog         


        
6条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-17 20:00

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

    Following line in build.gradle file of your app module indicates the script of proguard needs to apply to your release build. It has two files:

    1. proguard-android.txt: is the default android proguard file, can be found in D:\SDK\tools\proguard directory of SDK.
    2. 'proguard-rules.pro': It contains your application specific proguard script. You need to create this file in the root folder of your application. All your application specific proguard should be inside this file.

提交回复
热议问题