I use monaca to develop Android apps.
I'd like to use the jar library provided by the manufacturer with my own Android plug-in.
I don't know where to store the jar library and how to set the classpath.
With cordova, by storing the jar library in the /platforms/android/libs folder
I can complete the build of my own plug-in, but I can't find such a folder in monaca.
Could you please let me know what I should do if monaca handles jar libraries?
monaca cordova
If you are creating a plug-in, it must be in plugman format.
If it's in plugman format, you can put the jar file in the same way as the java file.
For example,
https://github.com/NIFTYCloud-mbaas/monaca_push_plugin
See the .
This plug-in deals with a jar file called NCMB.jar.
in plugin.xml<lib-file src="src/android/libs/NCMB.jar"/>
It says that if you incorporate this plug-in, the project
The lib directory is automatically configured with NCMB.jar (common specification for Cordova/Monaca).
© 2024 OneMinuteCode. All rights reserved.