Monday, August 1, 2011

Android proguard issue - Can't read [proguard.ClassPathEntry@1a0c10f] (No such file or directory)

If you encounter the problem that can't read something when you proguard your program
as title write:
java.io.IOException: Can't read [proguard.ClassPathEntry@1a0c10f] (No such file or directory)

There will be two things you have to do:

1.Download the newest ProGuard version from official website, unzip all its' file in sub-directory and replace to your-andoird-sdk\tools\proguard\

It'll appear the exactly path where you got issue.

2.Export project again,
Now it'll show the error is:
java.io.IOException: Can't read [/Users/simon/Android/?q?HSDK/FET_SMarket_SDK/FET_APP_Store_SDK_2.3.0.jar] (No such file or directory)

3.When I back to that directory, ?q?HSDK isn't my directory's name, the name actually is "電信SDK".
Now, I got the answer that I can't use Chinese in my path, Otherwise I will get this problem.

原來讓我卡住一天,不能發佈並混淆程式的原因是︰
我用了中文目錄成為路徑,
ProGuard不能辨認中文!

上一篇︰

關於程式碼混淆proguard

相關文章︰

No comments:

Post a Comment