混淆打包的Proguard returned with error code 1. See console錯誤

如果你使用Android的混淆打包時遇到以下類似錯誤:


Proguard returned with error code 1. See console
[2011-12-01 14:03:09 - ] proguard.ParseException: Expecting class path separator ';' before 'Analytics' in line 1 of file 'C:\Users\cninbexi\AppData\Local\Temp\android_841900648242013690.pro',
[2011-12-01 14:03:09 - xxx]   included from argument number 2
[2011-12-01 14:03:09 - xxx]     at proguard.ConfigurationParser.parseClassPathArgument(ConfigurationParser.java:295)
[2011-12-01 14:03:09 - xxx]     at proguard.ConfigurationParser.parse(ConfigurationParser.java:109)
[2011-12-01 14:03:09 - xxx]     at proguard.ProGuard.main(ProGuard.java:491)


打開對應的文件C:\Users\cninbexi\AppData\Local\Temp\android_841900648242013690.pro可以看到是因爲第三方庫的路徑包含空白字符,把路徑的空白字符去掉即可解決此問題。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章