xamarin 不使用 android sdk 构建正确的 apk [英] xamarin don't build proper apk with android sdk

查看:24
本文介绍了xamarin 不使用 android sdk 构建正确的 apk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨天我能够构建 apk 文件.由于我添加了大量图片和资源来主题应用程序,并且当我想在我的设备上测试它时,Visual Studio 为我构建了一个崩溃的应用程序.

Yesterday I was able to build apk files. Since I have add lots of pictures and ressources to theme the app, and when I want to test it on my device, Visual Studio build me one app that crash.

我设置了发布"模式,然后转到工具">发布应用程序",我创建了一个密钥库并构建了 apk.

I set the "Release" mode, I go to TOOL>Publish application, I create a keystore and I build the apk.

我将代码设置为禁用调试"并制作了清单.

I put the code to "Disable Debugging" and I've made the manifest.

当我尝试安装它时,它可以工作,但应用程序崩溃了.

When I tried to install it, it works, but the app crash.

该应用程序与模拟器完美配合.

The application works perfectly with the emulator.

权重并没有真正改变(一些 Ko)但是由于我放的所有图片,应用程序必须更大,所以有些问题......

The weight hasn't really change (some Ko) but the app MUST be bigger because of all the pictures I've put, so something is wrong...

感谢帮助我:-)

推荐答案

我取消了属性中的使用共享运行时">Mono android 选项:

I unchecked the "Use Shared Runtime" in the properties>Mono android options:

这篇关于xamarin 不使用 android sdk 构建正确的 apk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆