Android Market - Error While Uploading APK file(Android Market - 上传 APK 文件时出错)
问题描述
刚刚我开发了一个应用程序,现在我准备将它上传到Android市场,但是当我尝试上传时,它会显示以下错误消息:
Just now I have developed an application and now I am ready to upload it to Android market, but when I am trying to upload, it shows the following error message:
Market 不接受使用调试证书签名的 apk.创建一个有效期至少为 50 年的新证书.市场要求用于签署 apk 的证书至少在 2033 年 10 月 22 日之前有效.创建一个新证书.
Market does not accept apk signed with the debug certificate. Create a new certificate that is valid for atleast 50 years. Market requires that the certificated used to sign the apk be Valid until at least October 22, 2033. Create a new Certificate.
现在我该如何解决这个问题,以便我可以成功地将 APK 文件上传到 Android 市场?
Now how do I fix this problem, so that I can upload the APK file to Android market successfully?
推荐答案
开发测试时,可以调试模式编译(调试证书).
While developing and testing, you can compile in debug mode(debug certificate).
当您的应用程序准备好发布时,您必须在发布模式下编译,然后使用您的私钥签署 .apk.
When your application is ready for release, you must compile in release mode and then sign the .apk with your private key.
以下链接对您有帮助
http://developer.android.com/guide/publishing/app-签名.html
这篇关于Android Market - 上传 APK 文件时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Android Market - 上传 APK 文件时出错


- Jersey REST 客户端:发布多部分数据 2022-01-01
- 如何使用WebFilter实现授权头检查 2022-01-01
- 从 finally 块返回时 Java 的奇怪行为 2022-01-01
- Spring Boot连接到使用仲裁器运行的MongoDB副本集 2022-01-01
- Safepoint+stats 日志,输出 JDK12 中没有 vmop 操作 2022-01-01
- Eclipse 插件更新错误日志在哪里? 2022-01-01
- 将log4j 1.2配置转换为log4j 2配置 2022-01-01
- C++ 和 Java 进程之间的共享内存 2022-01-01
- Java包名称中单词分隔符的约定是什么? 2022-01-01
- value & 是什么意思?0xff 在 Java 中做什么? 2022-01-01