0

While I tried to enable pro-guard in my project and generate an apk, I got build failed.

The error message is

Expecting type and name instead of just '***' before '(' in line 367 of file 'D:\AMS mobile\PhoonEw\app\build\intermediates\proguard-rules\dev\release\aapt_rules.txt'

My build.gradle pro-guard code

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

And lineno 367 is error

Amninder Singh
  • 321
  • 1
  • 10
Sabai Phoo
  • 358
  • 1
  • 4
  • 20
  • A `***` is not valid in pro-guard I'm assuming you are trying to do [this](https://stackoverflow.com/a/17257093/8608146) and related [this](https://stackoverflow.com/questions/21727162/what-does-the-double-asterisk-mean-in-proguard-rules) – Phani Rithvij Jul 23 '19 at 11:02
  • it is expecting some matching function name you want to add in prguard rules. e.g *** d() -- for log.d – Neha Rathore Jul 23 '19 at 11:03
  • Even proguard file does not have the code, it is showing – Sabai Phoo Jul 24 '19 at 05:20

1 Answers1

0

Inline 367 it pointing .xml file, so I come to this screen and check error. The main problem I got is I declared onClick=" "(no function name). So this coz problem in generating application release.xml file

Sabai Phoo
  • 358
  • 1
  • 4
  • 20