Xamarin JAR绑定没有创造从android.app.IntentService派生类绑定 [英] Xamarin JAR binding not creating a binding for derived class from android.app.IntentService

查看:166
本文介绍了Xamarin JAR绑定没有创造从android.app.IntentService派生类绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个Android Java绑定库。
我有一个扩展IntentService一类,我需要它在C#中被曝光。当我建立这个项目,我得到了以下警告:

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:

警告BG8102:类eu.mypackage.UI.MyIntentService有未知的基本类型android.app.IntentService(BG8102)

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

有没有办法解决这个问题的方法是什么?

Is there a way to solve this?

推荐答案

目前我找到临时的解决方案结束。我已经加入IntentService类我罐子,让我延长IntentService从包中伸出IntentService。它的工作原理。

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.

这篇关于Xamarin JAR绑定没有创造从android.app.IntentService派生类绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆