How to convert existing android library into cordova plugin?
Reference android library link:- https://github.com/yanzhenjie/Album
I have tried including dependency
compile 'com.yanzhenjie:album:2.0.2’
into build.gradle file but it didn’t helped.
Also, I have tried converting this library by creating a plugin by
following this cordova plugin development guide
and tried accessing native code via plugin javascript file but it gives error as
"Unable to access the property ‘MyCordovaPlugin’ of undefined"
The sample plugin path is as follows:-