首页 > 解决方案 > Easiest Way to Deploy Xamarin Android App in VS 2017?

问题描述

I have an Android app that I made maybe like 2 years back. I never deployed it to google store as it really is just for me.

I deployed it on my phone and installed via apk or through VS itself (I can't remember).

I recently formatted my phone and now would like to get my app back. I still have the code and opened it in VS 2017, it did an upgrade of my project but I can't figure out how to deploy it to my phone.

I enabled developer mode but still can't figure it out. I tried to copy the apk that VS generated but when I try to install it, I just get "it is corrupt and can't install".

The app is extremely simple. It is one screen with 6 textboxes and 1 dropdown on it.

Just trying to get it back on my phone as fast as possible so I can use it.

I do get some error when I try to see if it will load on the emulator in VS 2017

Severity    Code    Description Project File    Line    Suppression State
Error       ADB0010: Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]
   at Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String output, String packageName)
   at Mono.AndroidTools.AndroidDevice.<>c__DisplayClass94_0.<InstallPackage>b__0(Task`1 t)
   at System.Threading.Tasks.ContinuationTaskFromResultTask`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()     

0   

标签: androidxamarinandroid-7.0-nougat

解决方案


这只是您正在做的最简单的方法。通过 USB 数据线插入您的设备并按 F5。我确信您需要检查 Visual Studio 中所有支持的 CPU 架构。右键单击您的项目-转到属性

属性-->Android 选项-->高级-->支持的架构

  • 阿米亚比;
  • armeabi-v7a;
  • x86;
  • x86_64

并检查是否可用,从您的真实设备设置-> 应用程序-> 卸载中卸载您的应用程序。

希望对您有所帮助。


推荐阅读