简体   繁体   English

xamarin android apk安装在模拟器上,但未安装在设备上

[英]xamarin android apk installs on emulator but not on device

I have an existing android application which is written in Xamarin Android. 我有一个用Xamarin Android编写的现有android应用程序。 when I Adhoc distribute the APK I am able to install the APK on an emulator. 当我临时分发APK时,我可以在模拟器上安装APK。 However when I try to install the apk on a device I get the following error 但是,当我尝试在设备上安装apk时,出现以下错误

Starts installing and then Application cannot be installed. 开始安装,然后无法安装应用程序。 USB debugging enabled and allow application from unknown sources is enabled. 已启用USB调试并允许来自未知来源的应用程序。

My project properties look like this 我的项目属性如下所示

应用 在此处输入图片说明 在此处输入图片说明

Package signing is blank ie, default 软件包签名为空白,即默认

When I do build acrhive and save the apk. 当我做acrhive并保存apk时。 I can take the apk and run on an emulator on a different machine however when i try to install the apk on a device it fails with error 'Application not installed' 我可以使用apk并在另一台计算机上的模拟器上运行,但是当我尝试将apk安装在设备上时会失败,并显示错误“未安装应用程序”

I am really new to this guys, any help is greatly appreciated. 我对这家伙真的很陌生,任何帮助都将不胜感激。 I bet i am missing something simple. 我敢打赌,我缺少一些简单的东西。

You should sign your APK. 您应该在APK上签名。 Unsigned APK cannot be installed on the real device . 未签名的APK无法安装在真实设备上 Check here how to sign Xamarin Android app. 在此处查看如何对Xamarin Android应用进行签名。

I figured it out guys. 我想通了。 You have to go into play store settings and click play protect and settings. 您必须进入Play商店设置,然后点击Play保护和设置。 Disable the slider and the app installs. 禁用滑块并安装应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM