2012年6月3日 星期日

Android ProGuard問題


試了 ProGuard 果然遇到問題.

主要的訊息如下:
Proguard returned with error code 1. See console
there were 1290 duplicate class definitions.


google 了一陣子,總算查到解法,主要是在proguard.cfg內加上一行:

-ignorewarnings

就ok了.

另外製作出的apk檔果然小了好多,更方便下載.

2012年4月22日 星期日

一年後的紅叉


Eclipse 專案上出現紅叉的情況有很多,今天又碰到了不一樣的了,原來過了一年就會碰到....,滿有意思的,網路上查了一下;  在 http://developer.android.com/guide/publishing/app-signing.html 內有說明


Expiry of the Debug Certificate

The self-signed certificate used to sign your application in debug mode (the default on Eclipse/ADT and Ant builds) will have an expiration date of 365 days from its creation date.

When the certificate expires, you will get a build error. On Ant builds, the error looks like this:

..............後面還有一些,大意是說刪除 debug.keystore 這個檔案.


想想也接觸 android 一年了...,也沒做什麼好東西出來...唉...


不過我刪除了後...,呃!還是一樣耶...,再查了一下,結果發現把 Thumbs.db 這個檔案也刪掉就好了,過程真是多災多難啊.