M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

Location of jar files when adding Cordova plugin manually

hi,

I need to use a Cordova plugin in one of my app and I tried using the plugin import functionality but it failed - I tried with at least 3-4 different plugins and either there would be an error, or the plugin just doesn't work.

So I switched to manual adding of plugin, which has worked for me. I am trying to add this couchbase lite cordova plugin and I see this set of lines in the xml file that is pointing to the location of the jar files. When I add this plugin, do I just upload those jar files into some folder (if yes which folder would it be?)

The following are the lines:
code
<platform name="android">
<config-file target="res/xml/config&#46;xml" parent="/*">
<feature name="CBLite">
<param name="android-package" value="com&#46;couchbase&#46;cblite&#46;phonegap&#46;CBLite"/>
<param name="onload" value="true"/>
</feature>
</config-file>
<framework src="src/android/build&#46;gradle" custom="true" type="gradleReference"/>
<source-file src="src/android/CBLite&#46;java" target-dir="src/com/couchbase/cblite/phonegap"/>
<source-file src="lib/android/commons-io-2&#46;0&#46;1&#46;jar" target-dir="libs"/>
<resource-file src="lib/android/couchbase-lite-android-1&#46;2&#46;0&#46;aar" target="libs/couchbase-lite-android-1&#46;2&#46;0&#46;aar"/>
<resource-file src="lib/android/couchbase-lite-android-sqlite-default-1&#46;2&#46;0&#46;aar" target="libs/couchbase-lite-android-sqlite-default-1&#46;2&#46;0&#46;aar"/>
<source-file src="lib/android/couchbase-lite-java-core-1&#46;2&#46;0&#46;jar" target-dir="libs"/>
<source-file src="lib/android/couchbase-lite-java-javascript-1&#46;2&#46;0&#46;jar" target-dir="libs"/>
<source-file src="lib/android/couchbase-lite-java-listener-1&#46;2&#46;0&#46;jar" target-dir="libs"/>
<source-file src="lib/android/jackson-annotations-2&#46;5&#46;0&#46;jar" target-dir="libs"/>
<source-file src="lib/android/jackson-core-2&#46;5&#46;0&#46;jar" target-dir="libs"/>
<source-file src="lib/android/jackson-databind-2&#46;5&#46;0&#46;jar" target-dir="libs"/>
<source-file src="lib/android/rhino-1&#46;7R3&#46;jar" target-dir="libs"/>
<source-file src="lib/android/servlet-2-3&#46;jar" target-dir="libs"/>
<source-file src="lib/android/stateless4j-2&#46;4&#46;0&#46;jar" target-dir="libs"/>
<source-file src="lib/android/webserver-2-3&#46;jar" target-dir="libs"/>
</platform>
/code
Thanks,
M.M

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Location of jar files when adding Cordova plugin manually

Hello,

Did you add that plugin with Appery.io plugin manager? https://devcenter.appery.io/documenta...

M&M
Posts: 0
Joined: Tue Nov 11, 2014 6:59 am

Location of jar files when adding Cordova plugin manually

I managed to figure it out but here is a related question

I have an older app in which I had added some Cordova Plugins manually as mentioned in the previous documentation. I tried to upgrade the app from library version v2.3 to v3.0. When I try building the apk I get the following blank error.

Image

Thanks,
M.M

Return to “Issues”