發表文章

目前顯示的是有「solution」標籤的文章

[Android] One of "Installation failed due to invalid APK file!"

Today I encounter this error shows in Eclipse console: [xxxx - xxx] Installation failed due to invalid APK file! [xxxx - xxx]  Please check logcat output for more details. [xxxx - xxx]  Launch canceled! then I checked logcat and get a similar message like this one on stackoverflow , You can find sentence like "Unable to read AndroidManifest.xml" in the error message 03 - 03 00 : 43 : 50.508 : W / PackageParser ( 512 ): Unable to read AndroidManifest . xml of / data / local / tmp / Linking Manager . apk If you search "Installation failed due to invalid APK file!" or "Unable to read AndroidManifest.xml", you will get many , many solutions to varying problem sources. But non of them, at least the first couple of articles in my search results, have never mentioned my situation, so here I am trying to contribute one to join them. Problem source:  the *.so file related to my project is out of date Solution: update *.so file ...

Android的@Override Error

圖片
久久沒用Android,重新安裝了環境、匯入Propject後跑出了一些錯誤,都是沒有實作的error,如: Multiple markers at this line - implements android.text.TextWatcher.afterTextChanged - The method afterTextChanged(Editable) of type showTextInputDialog.CustomTextWatcher must override a superclass  原來這是 Java SDK版本對於註記符號支援度 的問題,ADT預設使用Java 1.5( language level 5) 編譯內容,但1.5檢查source的時候並不認得「@Override」註記方法,而認為該class沒有正確override,只要把language level改成1.6(以上)就可以了。修改位置: project >  property > java compiler > Compiler compliance level > 1.6。