0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

AIRで作ったAndroidアプリが端末にインストール出来ないとき

0
Last updated at Posted at 2013-07-19

AIRで作ったAndroidアプリが端末にインストール出来ないときは

zip.sh
zip -d app.apk res/drawable-xhdpi/icon.png

で解決するかもしれない。

Failure [INSTALL_PARSE_FAILED_CERTIFICATE_ENCODING]

こういうエラーが出ていた時に、これでインストールできるようになった。


[追記]
けど、アイコンが表示されなくなっちゃったので、以下を実行して入れなおしてみる。

zip.sh
mkdir -p -v tmp
mkdir -p -v res/drawable-xhdpi
unzip -o app.apk -d tmp
cp -f tmp/res/drawable-xhdpi/icon.png res/drawable-xhdpi
zip -d app.apk res/drawable-xhdpi/icon.png
zip -u app.apk res/drawable-xhdpi/icon.png
rm -rf res
rm -rf tmp

AIRで書きだすと
上記同名のファイルが2つ入ってしまうのが問題らしいので
1つにしてやることで解消。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?