Image Picker Problems (better than Nose Picker Problems I guess)

I’m having serious issues with the Image Picker. Actually with com.synconset.imagepicker.

So, I created a new project:

ionic start test blank

ionic cordova platform add android

ionic cordova prepare

from :
ionic cordova plugin add cordova-plugin-telerik-imagepicker --variable PHOTO_LIBRARY_USAGE_DESCRIPTION=“your usage message”

Failed to install ‘com.synconset.imagepicker’: Error: Uh oh!
ENOENT: no such file or directory, open '/home/mike/Git/test/platforms/android/AndroidManifest.xml’
at Error (native)
at Object.fs.openSync (fs.js:641:18)
at Object.fs.readFileSync (fs.js:509:33)
at Object.parseElementtreeSync (/home/mike/Git/test/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:180:27)
at new AndroidManifest (/home/mike/Git/test/platforms/android/cordova/lib/AndroidManifest.js:29:20)
at AndroidProject.getPackageName (/home/mike/Git/test/platforms/android/cordova/lib/AndroidProject.js:99:12)
at AndroidProject.getCustomSubprojectRelativeDir (/home/mike/Git/test/platforms/android/cordova/lib/AndroidProject.js:105:28)
at install (/home/mike/Git/test/platforms/android/cordova/lib/pluginHandlers.js:106:46)
at Object.process (/home/mike/Git/test/platforms/android/cordova/node_modules/cordova-common/src/ActionStack.js:56:25)
at PluginManager.doOperation (/home/mike/Git/test/platforms/android/cordova/node_modules/cordova-common/src/PluginManager.js:114:20)

Both of these plugins listed on the @ionic-native/image-picker page dont work

I’m not really even sure the difference, but the both end up using the com.synconset.imagepicker which is clearly very dead.

This an experiment to get to the point where in my real project I can actually add the image picker, but running for emulation fails with

(node:11434) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: /home/mike/Git/reflectionship/reflectionship-mobile/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/home/mike/Git/reflectionship/reflectionship-mobile/platforms/android/src/com/synconset/ error: Entry is not public in LinkedHashMap; cannot be accessed from outside package
protected boolean removeEldestEntry(LinkedHashMap.Entry<Integer, Bitmap> eldest) {

I know this is a problem with the image picker itself, but I was wondering if anybody here has a work around as this is sort of a big plugin to be failing.

Thanks for any input,

I have found the solution. The problem is the new Cordova Android platforms >6.4.0 have changed folder structure that com.synconset.imagepicker has yet to be updated to use.

To get image picker working you should remove any cordova android platform > 6.4.0 then

ionic cordova platform add android@6.4.0

you can then install the Image Picker Plugin.


<< mike

am facing same issue with image picker plugin…after installing android platform image picker plugin is fail to install…

how you remove cordova android platform ?

ionic cordova platform rm android