我正在尝试在我的 monodroid 项目中添加这个 Android 库( https://github.com/nostra13/Android-Universal-Image-Loader )。在 Visual Studio 2010 中,我创建了一个Java 绑定库项目,在其中添加了该库的jar文件。
问题是,当我构建我的项目时,我遇到了一些错误:
'Com.Nostra13.Universalimageloader.Cache.Memory.Impl.LRULimitedMemoryCache.RemoveNext()': return type must be 'Java.Lang.Object' to match overridden member 'Com.Nostra13.Universalimageloader.Cache.Memory.LimitedMemoryCache.RemoveNext()'
在构建自动生成的这段代码上
static IntPtr id_removeNext;
[Register ("removeNext", "()Landroid/graphics/Bitmap;", "GetRemoveNextHandler")]
protected override global::Android.Graphics.Bitmap RemoveNext ()
{
if (id_removeNext == IntPtr.Zero)
id_removeNext = JNIEnv.GetMethodID (class_ref, "removeNext", "()Landroid/graphics/Bitmap;");
if (GetType () == ThresholdType)
return Java.Lang.Object.GetObject<global::Android.Graphics.Bitmap> (JNIEnv.CallObjectMethod (Handle, id_removeNext), JniHandleOwnership.TransferLocalRef);
else
return Java.Lang.Object.GetObject<global::Android.Graphics.Bitmap> (JNIEnv.CallNonvirtualObjectMethod (Handle, ThresholdClass, id_removeNext), JniHandleOwnership.TransferLocalRef);
}
还有这个错误
'Com.Nostra13.Universalimageloader.Core.Download.URLConnectionImageDownloader' does not implement inherited abstract member 'Com.Nostra13.Universalimageloader.Core.Download.ImageDownloader.GetStreamFromNetwork(Java.Net.URI)'
在这行代码上
public partial class URLConnectionImageDownloader : global::Com.Nostra13.Universalimageloader.Core.Download.ImageDownloader
有谁知道如何解决这个问题?或者有没有人在他们的 Monodroid 应用程序中成功导入了这个 java 库?
任何帮助深表感谢。谢谢