简体   繁体   中英

xamarin android apk installs on emulator but not on device

I have an existing android application which is written in Xamarin Android. when I Adhoc distribute the APK I am able to install the APK on an emulator. However when I try to install the apk on a device I get the following error

Starts installing and then Application cannot be installed. USB debugging enabled and allow application from unknown sources is enabled.

My project properties look like this

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

Package signing is blank ie, default

When I do build acrhive and save the 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'

I am really new to this guys, any help is greatly appreciated. I bet i am missing something simple.

You should sign your APK. Unsigned APK cannot be installed on the real device . Check here how to sign Xamarin Android app.

I figured it out guys. You have to go into play store settings and click play protect and settings. Disable the slider and the app installs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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