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)