38

最初の APK ファイルを Google Play にアップロードしていますが、次のエラーが発生します。

zip アラインされていない APK をアップロードしました。APK で zip align ツールを実行し、再度アップロードする必要があります。

apk ファイルを zip で整列する方法を教えてもらえますか?

そのための手順を教えてください。

4

6 に答える 6

14

Google 自体のドキュメントを読む

手順は簡単である必要があります。

完全な公開の詳細については、Google のこのドキュメントに従ってください

要するに、簡単に言えば完全な手順です(私はあなたがEclipse / Android SDKを使用していると仮定しています):

 1. Check android_manifest.xml and verify that android:debuggable  attribute is set to false in your manifest file            
 2. Check the android:versionCode and android:versionName attributes. 
    (if this is the first time you are uploading a apk,   
    ignore, else if it is a new version of existing apk, make sure these   
    values are larger than previous apk)
 3. Export unsigned application package from Eclipse
 4. Sign the application using release key certificate(not debug key certificate)
 5. Zip align the package
 6. Upload in google play
于 2014-04-28T06:17:39.790 に答える
13

Eclipse エクスポート ウィザードを使用すると、自動的に整列されます。ただし、自分で手動で行うことができます

infile.apk を配置して outfile.apk として保存するには:

zipalign [-f] [-v] <alignment> infile.apk outfile.apk

このウェブサイトはより多くの答えを提供できます:) http://developer.android.com/tools/help/zipalign.html

于 2014-04-28T06:17:53.947 に答える
10

以下のリンクまたはコードを試してください:-

infile.apk を配置して outfile.apk として保存するには:

zipalign [-f] [-v] <alignment> infile.apk outfile.apk

existing.apk の配置を確認するには:

zipalign -c -v <alignment> existing.apk

は、バイト アラインメントの境界を定義する整数です。これは常に 4 (32 ビット アラインメントを提供) でなければなりません。

フラグ:

-f : overwrite existing outfile.zip
-v : verbose output
-c : confirm the alignment of the given file

http://loomsdk.com/forums/loom-with-loomscript/topics/uploading-apk-to-google-play-displays-error-not-zip-aligned

http://developer.android.com/tools/help/zipalign.html

http://www.youtube.com/watch?v=ReRCJgS-g9o

于 2014-04-28T06:18:37.037 に答える
4

プロジェクトのファイルを確認すると、次のmanifest.xmlように表示されます。

android:debuggable="true"

に設定し"false"ます。

于 2014-11-07T02:07:18.753 に答える