创建了 Android 应用程序。
选择您的设备 (Galaxy s4) 并单击“调试”。一切正常。
然后,更改文件 MainActivity.cs
替换这个:
button.Text = string.Format ("{0} clicks!", count ++);
对此:
button.Text = string.Format ("{0} clicks two!", count ++);
我重新启动 Debug,但每次都不会显示更改。
如果您选中“在 native 代码中嵌入程序集”,一切正常,但编译时间会变长。
可能是什么问题?
Xamarin Studio 5.9.3 在 android 4.4.2 和 4.1.2 上测试
附言 如果应用程序中的“清除数据”,或 Xamarin Studio 中的“上传到设备”,那么它就可以工作。
最佳答案
我认为它是 Fast deployment 导致您出现问题的选项:
Fast deployment works in concert with the shared runtime to further shrink the Android application package size. [...] Fast deployment is known to fail on devices which block adb from synchronizing to the directory /data/data/@PACKAGE_NAME@/files/.override.
尝试在您的 Android 项目的属性中将其关闭。
关于c# - Xamarin 无法调试 (Android),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30962726/