Proguard ParseException unknown option dump.txt

2019-08-31 13:05发布

I read alot of posts similar to this topic, but cant solve it anyway. Everytime I try to export my signed application with the obfuscator enabled, I get the following:

[2011-12-23 13:26:35 - AppName] Proguard returned with error code 1. See console
[2011-12-23 13:26:35 - AppName] proguard.ParseException: Unknown option 'android\AppName\proguard\dump.txt' in argument number 9
[2011-12-23 13:26:35 - AppName]     at proguard.ConfigurationParser.parse(ConfigurationParser.java:170)
[2011-12-23 13:26:35 - AppName]     at proguard.ProGuard.main(ProGuard.java:491)

I use the Google APIs Version 2.3.3 and the standard configuration and just added the proguard.config=proguard.cfg to the projects.properties. I use "Progra~1" in the SDK path and tried clean already.

As far as I know, the dump.txt is generated in a successfully run of the obfuscator.

Can someone give me a hint?

1条回答
可以哭但决不认输i
2楼-- · 2019-08-31 13:32

It is because of the space in the project folder path. There is a duplicate question here Proguard ParseException with Default proguard.cfg on Android and the answer is step 2,3,4 and 5 of the accepted answer.

查看更多
登录 后发表回答