How to zip Align APK file in android?(如何在android中压缩对齐APK文件?)
问题描述
我正在将我的第一个 APK 文件上传到 google play,但出现以下错误.
I am uploading my first APK file to google play but I am getting following error.
您上传的 APK 未与 zip 对齐.您需要在 APK 上运行 zip align 工具并重新上传.
You uploaded an APK that is not zip aligned. You will need to run a zip align tool on your APK and upload it again.
谁能告诉我如何压缩对齐我的 apk 文件?
Can any one tell me how to zip align my apk file ?
请告诉我具体的步骤?
推荐答案
阅读来自 Google 本身的文档
这些步骤应该很简单.
请关注 Google 的 此 文档完整的发布细节
Please follow this doc from google for complete publishing details
简而言之,完整的步骤(我假设你使用 eclipse/android sdk):
In short,complete steps in a nutshell(I am assuming you use 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
这篇关于如何在android中压缩对齐APK文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在android中压缩对齐APK文件?


基础教程推荐
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- iOS4 创建后台定时器 2022-01-01