xamarin.android 应用程序签名不起作用 [英] xamarin.android App signing does not work

查看:29
本文介绍了xamarin.android 应用程序签名不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我试图将我的新 Android 应用发布到 Google PlayStore.通过阅读教程,我明白我有在发布到 PlayStore 之前签署我的应用程序.我做的和教程中的完全一样.将其上传到 PlayStore 后,我尝试在我的设备上安装该应用程序.我收到消息包文件未正确签名".这很奇怪.. 在 xamaran studio 中,我收到消息包已成功签名".

So im trying to publish my new android app to the Google PlayStore. From reading this tutorial I understand that I have to sign my app before releasing it to the PlayStore. I did exactly the same as in the tutorial. After uploading it to the PlayStore I tried to install the App on my device. I got the message "Package file was not signed correctly". This is strage.. In xamaran studio I get the message "Package succesfully signed".

如果我尝试从设备上的 apk 安装应用程序,我会收到消息无法安装"

If I try to install the App from the apk on the device I get the message "Unable to install"

这里有什么问题?

我在 Mac 上使用 Xamarin Studion.

Im using Xamarin Studion on a Mac.

推荐答案

发现问题..这是一个 JAVA 工具问题.这种情况在系统上混合使用 JDK 和 JRE 工具时经常发生.

Found the problem..This is a JAVA tooling problem. This occurs frequently with mixing JDK and JRE tools on the system.

请勿使用 Java 7 中的工具!

DO NOT USE THE TOOLS FROM Java 7!

仅使用 JDK 6 中的工具.您可以输入以下内容来检查您的版本:

Only use the tools from JDK 6. You can check what version you have by typing:

java -version

如果您仍然不确定签名是否成功,您可以输入:

If you are still unsure whether the signing was succesfull you can type:

which jarsigner

jarsigner -verify -verbose -certs myapp.apk

这篇关于xamarin.android 应用程序签名不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆