android - 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
解决方案
这只是您正在做的最简单的方法。通过 USB 数据线插入您的设备并按 F5。我确信您需要检查 Visual Studio 中所有支持的 CPU 架构。右键单击您的项目-转到属性
属性-->Android 选项-->高级-->支持的架构
- 阿米亚比;
- armeabi-v7a;
- x86;
- x86_64
并检查是否可用,从您的真实设备设置-> 应用程序-> 卸载中卸载您的应用程序。
希望对您有所帮助。
推荐阅读
- eclipse-hono - 如何在部署在 K8s 集群上的 Eclipse Hono 中进行服务配置?
- typescript - 根据 serenity-platform 中的条件设置必填/不需要的字段
- blockchain - 使用 ipfs 和区块链的文件搜索和实现
- node.js - 套接字连接未在颤振端与 socket_io_client 库建立
- java - 在 ContextListener 的内部,我如何找出 Web App 正在运行的端口
- java - 如何在软件键盘上按住退格(或删除)时在 Android 的 EditText 上以恒定速度删除字符
- c# - Automapper 错误 System.ArgumentException 映射子实体
- javascript - 如何将 postcss.plugin 迁移到 postCSS 8 格式
- php - 在laravel 6中对具有另一个数组中的值的多维数组进行排序 - php
- amazon-cloudformation - 对失败的 cloudwatch 事件进行故障排除