我正在使用Visual Studio Tools for Apache Cordova来开发hybird应用程序,主要是Jquery mobile。现在,我想使用一个thrid party jar文件。Visual Studio Tools for Apache Cordova是否可以将Jar文件添加到我的项目中?谢谢。
发布于 2016-04-30 00:59:58
我见过开发人员使用构建的应用程序中的lib文件夹作为.jar文件的目的地。这篇文章看起来很有帮助:How to include jar files in phonegap android application?
引用答案:
<source-file src="libs/mylib.jar" target-dir="libs" />
"libs“是存储.jar文件的默认文件夹,因此您的lib将被链接。
看一看使用外部库的现有插件。
示例(https://github.com/Pushwoosh/pushwoosh-phonegap-3.0-plugin)
https://stackoverflow.com/questions/36906585
复制相似问题