Xamarin Android publish breaks app

时间:2016-08-31 17:00:17

标签: xamarin xamarin.android

My android app builds and runs just fine on debug, but when I switch it to publish and deploy the app manually, things start breaking. Images are missing, entry fields don't work (placeholder text shows up, and the keyboard pops when I click on the field, but nothing I type in shows up), and some of my tap handlers aren't working. Are there any suggestions on what would possibly cause this? Seems odd that just changing to publish would cause that...

1 个答案:

答案 0 :(得分:2)

尝试将Release链接器设置更改为Don't Link/None,并查看Debug部署的相同行为是否会恢复。如果是这样,那么链接器就会解决它应该没有的问题。

developer.xamarin.com/guides/android/advanced_topics/linking

这当然会大大增加包装的尺寸,你会想要使用不同的保存方法。

High Kernel CPU when running multiple python progams

https://developer.xamarin.com/guides/android/advanced_topics/linking/#Preserving_Code

https://developer.xamarin.com/guides/android/advanced_topics/linking/#falseflag

我强烈建议在进入完整调查模式之前尝试linkskip任何第三方程序集。然后,您可以使用Custom Linker配置文件来准确定义不应通过链接器消除的内容:

https://developer.xamarin.com/guides/android/advanced_topics/linking/#linkskip