Xamarin JAR binding not creating a binding for derived class from android.app.IntentService

半腔热情 提交于 2020-01-15 12:49:09

问题


I am trying to create an Android Java binding library. I have a class that that extends IntentService and I need it to be exposed in C#. When I build the project I got the following warning:

Warning BG8102: Class eu.mypackage.UI.MyIntentService has unknown base type android.app.IntentService (BG8102)

Is there a way to solve this?


回答1:


At the end I found temporary solution. I have added IntentService class to my jar and make my extended IntentService extends IntentService from the package. It works.



来源:https://stackoverflow.com/questions/27902506/xamarin-jar-binding-not-creating-a-binding-for-derived-class-from-android-app-in

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