android - 在 VS Xamarin 中导出 Apk 失败

标签 android xamarin apk packaging

我试图在我的电脑上导出一个 apk,但它没有提取它并给我这个 massege

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 (2045-07-26) or after any future revocation date.

或者给了我一个崩溃的 apk,我不知道为什么..注意应用程序在 Debug模式下工作

但是当我尝试在另一台电脑上导出它时它工作正常

最佳答案

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 (2045-07-26) or after any future revocation date.

Java 1.7.x 和 Xamarin 的已知问题,大多数人只是忽略它并且在提交到 Google Play 商店时没有遇到任何问题。

有些人正在创建指向 Java 1.6 的符号链接(symbolic link),而其他人正在使用类似 .csproj 中的 hack 的变通方法:

http://blog.ostebaronen.dk/2015/06/getting-rid-of-no-tsa-or-tsacert-is.html

<PropertyGroup>
    <AndroidKeyStore>True</AndroidKeyStore>
    <AndroidSigningKeyStore>my.keystore</AndroidSigningKeyStore>
    <AndroidSigningStorePass>secret store password</AndroidSigningStorePass>
    <AndroidSigningKeyAlias>alias -tsa http://timestamp.digicert.com</AndroidSigningKeyAlias>
    <AndroidSigningKeyPass>other password</AndroidSigningKeyPass>
</PropertyGroup>

关于android - 在 VS Xamarin 中导出 Apk 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32333684/

相关文章:

azure - Azure 移动服务和 Xamarin Azure 组件中的空间索引

php - 如何使用 php 签署 android 应用程序?

android - 在 Android 中,如何将位图上的颜色更改为另一种颜色?

android - findViewById 找不到我的按钮

Android不同的菜单资源

java - 如何在 Android 上管理从后台恢复的 Xamarin 表单应用程序?

c# - 如何检查 Xamarin iOS 中是否存在某个方法/类/API?

java - 尝试录制音频时应用程序崩溃

android - 创建 Android APK 测试应用程序

android - 将 APK 上传到 Google Play 控制台不起作用