一个jar文件添加到我Xamarin项目 [英] Add a jar file to my Xamarin project

查看:545
本文介绍了一个jar文件添加到我Xamarin项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在通用图像装载JAR的文件添加到我的Xamarin的项目,我不知道我需要做的。我有一个看看这个资源,但仍希望一些帮助,请:<一href=\"http://www.itexico.com/blog/bid/100447/Android-Wear-Developer-$p$pview-Using-Xamarin-Jar-Binding\" rel=\"nofollow\">itexico.com/blog/bid/100447/Android-Wear-Developer-$p$pview-Using-Xamarin-Jar-Binding

I am wanting to add the "universal-image-loader jar" file to my Xamarin project and am not sure what I need to do. I have had a look at this resource but would still like some help please: itexico.com/blog/bid/100447/Android-Wear-Developer-Preview-Using-Xamarin-Jar-Binding

这是我迄今所做的:


  1. https://github.com/nostra13/Android-Universal-Image-Loader

  2. 在我Xamarin项目的根文件夹中创建一个名为罐子的文件夹

  3. 我已经加入了通用图像装载-1.9.2-与-sources.jar文件到罐子的文件夹

  4. 我已经设置生成操作为嵌入的资源为通用图像装载-1.9.2-与-sources.jar文件

  5. 我已经成功地构建项目

我仍然无法在我的应用程序中使用 ImageLoader的对象。我无法解析 ImageLoader的对象,我不知道还有什么我需要做的。

I still cannot use the ImageLoaderobject in my application. I cannot resolve a ImageLoaderobject and am not sure what else I need to do.

我可以请有一些帮助?

在此先感谢

推荐答案

我建议你使用的Java绑定库为。
你需要做的是一个项目添加到您的类型的解决方案 Android的Java绑定,图书馆不要需要创建文件夹罐它在自身的新项目创建。添加您的罐子在那里。在您启动项目点击引用,并添加您刚才创建作为参考Java绑定项目。构建它,并尝试无论是在使用部分添加它或它的全名访问您的装配。

I'd suggest you use Java Bindings Library for that. What you need to do is to add a project to your solution of type "Android Java Bindings Library" you DON'T need to create Jars folder it is created in the new project by itself. Add your jars there. On your startup project click on references and add the java binding project you have just created as a reference. build it and try accessing your assembly either by adding it in the using section or by it's fully qualified name.

祝你好运!

这篇关于一个jar文件添加到我Xamarin项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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