Luc*_*key 37 android publishing apk google-play zipalign
我上传了我的第一个APK文件到谷歌播放,但我收到以下错误.
您上传了一个非zip对齐的APK.您需要在APK上运行zip对齐工具并再次上传.
任何人都可以告诉我如何拉链对齐我的apk文件?
请告诉我这些步骤?
Arn*_*ati 13
阅读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
Run Code Online (Sandbox Code Playgroud)
Jer*_*rry 12
如果您使用Eclipse导出向导,它将自动为您对齐它.但是你可以自己手动完成
对齐infile.apk并将其保存为outfile.apk:
zipalign [-f] [-v] <alignment> infile.apk outfile.apk
Run Code Online (Sandbox Code Playgroud)
这个网站可以提供更多的答案:) http://developer.android.com/tools/help/zipalign.html
请尝试以下链接或代码: -
对齐infile.apk并将其保存为outfile.apk:
zipalign [-f] [-v] <alignment> infile.apk outfile.apk
Run Code Online (Sandbox Code Playgroud)
要确认existing.apk的对齐方式:
zipalign -c -v <alignment> existing.apk
Run Code Online (Sandbox Code Playgroud)
这是一个定义字节对齐边界的整数.这必须始终为4(提供32位对齐),否则它实际上什么都不做.
标志:
-f : overwrite existing outfile.zip
-v : verbose output
-c : confirm the alignment of the given file
Run Code Online (Sandbox Code Playgroud)
http://developer.android.com/tools/help/zipalign.html
http://www.youtube.com/watch?v=ReRCJgS-g9o
| 归档时间: |
|
| 查看次数: |
79021 次 |
| 最近记录: |