Unable to build xamarin project to real device

Hello , i am working on a Xamarin project (Visual Studio 2017).Its working fine in emulator when run the solution in Debug and Release mode but unable to run into real device as Visual Studio not showing any attached device though device is already attached and also developer option and all necessary options are active.And also getting "app not installed, package is corrupted" error when trying to make an apk and run into real device.please give solutions.thanks in advance.

Answers

  • BillyLiuBillyLiu Member, Xamarin Team Xamurai

    @pratim_sahoo

    Visual Studio not showing any attached device though device is already attached and also developer option and all necessary options are active.

    Have you enabled USB debuggung?

    What's your project's Minimum Android version and your real device Android version?
    If your Minimum Android version is higher than your device Android version, VS will not display your device in the list.

  • @BillyLiu USB debugging enable on device.
    Min Android version : Android 5.0(API level -21, Lollipop)
    Real Device Android version: Android 7.1.1
    Target Android version: Android 8.0(API level - 26, Oreo)

Sign In or Register to comment.