Visual Studio Tools for Apache Cordova add a Jar from 3party

家住魔仙堡 提交于 2019-12-11 04:26:13

问题


I'm using Visual Studio Tools for Apache Cordova to develop hybird app,mainly Jquery mobile. And now I'd like to consume a thrid party jar file. Is it possible Visual Studio Tools for Apache Cordova can add a Jar file into my project ? Thank you.


回答1:


I've seen devs use the lib folder, in the built application, as a destination for .jar files. This post looks helpful: How to include jar files in phonegap android application?

Quoting the answer:

<source-file src="libs/mylib.jar" target-dir="libs" />

"libs" is the default folder for storing .jar files so your lib will be linked.

Take a look at an existing plugin using an external lib.

An example (https://github.com/Pushwoosh/pushwoosh-phonegap-3.0-plugin)



来源:https://stackoverflow.com/questions/36906585/visual-studio-tools-for-apache-cordova-add-a-jar-from-3party

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