Does MonoDroid support java.lang.reflect package methods?

只愿长相守 提交于 2019-12-24 11:28:45

问题


I need to use methods from java.lang.reflect in a MonoDroid solution, but I can't find this namespace anywhere. Is there a way to access these?


回答1:


The java.lang.reflect package is not bound in Mono for Android. This bug has some more details about that. If you really need to work around that limitation, you could write that part of your application in Java and then call it through JNI. Xamarin has a good guide on using JNI up here.



来源:https://stackoverflow.com/questions/11372981/does-monodroid-support-java-lang-reflect-package-methods

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!