android - xamarin 在 mac 上构建的 APK 未安装

标签 android xamarin apk

我正在 mac 上使用 Xamarin studio 构建一个 android 应用程序。在真实设备上调试时没有问题,但是当我构建 APK 时,xamarin 成功构建并签署了应用程序,但出现此警告:

No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (2041-03-07) or after any future revocation date.

我无法在遇到此错误的设备上安装此应用程序:应用程序未安装 (我应该提到,为了构建这个应用程序,我使用了之前在 Windows 上创建的 keystore 。) 请帮我解决这个问题。 谢谢

我正在使用:

xamarin 工作室 4.2.3
Xamarin.Android 版本:4.12.1
Java 版本“1.7.0_51”

最佳答案

这里的问题是您的 Java 版本。确保使用 Java 1.6。

有关更多信息,请参阅此帖子:http://developer.nickaustinlee.com/2014/03/05/android-application-not-installed-warning/

长话短说

  • 安装Java 1.6
  • 查找 1.6 的 Java 主页:

    $ /usr/libexec/java_home -v '1.6*'
    
  • 转到 Xamarin 首选项 (cmd+,) => SDK 位置 => Android => 设置 Java SDK。

真诚的, —加持

关于android - xamarin 在 mac 上构建的 APK 未安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22334757/

相关文章:

android - config.ini 中的系统镜像文件夹不存在

APK中的android APK?

android - 我如何知道 MotionEvent 是相对的还是绝对的?

android - 无淡入淡出效果的闪烁 Alpha 动画

c# - Xamarin Forms Prism 调用方法

c# - 无法连接到 Android 上的 TCP 端口

android - 试图在 Android Studio 中重命名一个包,但说文件 (com) 已经存在

android - 您上传的文件不是格式正确的 zip 存档

java - 连接到3G移动网络时获取android设备的IP地址

android - TextView 换行问题