9

Is that possible to add external jar library like android volley library when build cordova plugin for ionic framework, I have try build cordova plugin like in here, but in that tutorial it just use Android Core abilities, not external android libraries, is there a way to add it and is it possible ?

1 Answer 1

14

Yes, you can use dependency libraries in cordova plugins for Android

On the config.xml you have to add it like this

<lib-file src="src/android/libs/yourLibName.jar"/>

The recommended way is adding the library using Gradle (if possible). Volley doesn't seems to be compatible, but you can use this compatible fork

<framework src="com.mcxiaoke.volley:library-aar:1.0.19" />
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.