本文介绍了obj/Debug/android/src/{name space} 的目录名是 MD5 哈希?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Xamarin Android 中,我使用 DialogPreference 类,需要从 XML 访问该类的完整路径.我很难做到这一点并检查了 obj/Debug ,我发现了这个:

In Xamarin Android, I am working with a DialogPreference class and need to access the full path of the class from the XML. I was having a hard time doing it and checked the obj/Debug where I found this:

命名空间的名称是IntervalAndroid",所有对应的文件都放在哈希名称的目录中.

The name of the namespace is "IntervalAndroid", and all the corrosponding files are placed in the directory with the hash name.

我做错了什么?

推荐答案

我怀疑您已更新到 Xamarin.Android 5.1,并且此 md5 目录是Android Callable Wrappers 的名称处理方案的重大更改"的结果".

I suspect you have updated to Xamarin.Android 5.1, and that this md5 directory is a consequence of the breaking change in the "name mangling scheme for Android Callable Wrappers".

另见:

论坛上发布公告的Android 重大更改"部分http://forums.xamarin.com/discussion/37277/stable-release-xamarin-android-5-1-0-break-changes-new-features-and-bug-fixes/p1

The "Android breaking changes" section of the release announcement on the forums http://forums.xamarin.com/discussion/37277/stable-release-xamarin-android-5-1-0-breaking-changes-new-features-and-bug-fixes/p1

这篇关于obj/Debug/android/src/{name space} 的目录名是 MD5 哈希?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-11 18:30