Image picker plugin is fail to install in ionic version 3

After creating new project when I run ionic cordova platform add android …it run successfully
but after when i run image picker plugin " ionic cordova plugin add cordova-plugin-telerik-imagepicker --variable PHOTO_LIBRARY_USAGE_DESCRIPTION=“App wants to access your gallery”…this plugin is not working …its give me error …please help me sort this problem

error is :
G:\ion\imagePicker>ionic cordova plugin add cordova-plugin-telerik-imagepicker --variable PHOTO_LIBRARY_USAGE_DESCRIPTION=“App wants to access your gallery”

cordova plugin add cordova-plugin-telerik-imagepicker --variable “PHOTO_LIBRARY_USAGE_DESCRIPTION=App wants to access your gallery” --save
Installing “com.synconset.imagepicker” for android

Android Studio project detected

Error during processing of action! Attempting to revert…

Failed to install ‘com.synconset.imagepicker’: Error: Uh oh!
ENOENT: no such file or directory, open ‘G:\ion\imagePicker\platforms\android\AndroidManifest.xml’
at Object.fs.openSync (fs.js:646:18)
at Object.fs.readFileSync (fs.js:551:33)
at Object.parseElementtreeSync (G:\ion\imagePicker\platforms\android\cordova\node_modules\cordova-common\src\util\xml-helpers.js:180:27)
at new AndroidManifest (G:\ion\imagePicker\platforms\android\cordova\lib\AndroidManifest.js:29:20)
at AndroidProject.getPackageName (G:\ion\imagePicker\platforms\android\cordova\lib\AndroidProject.js:99:12)
at AndroidProject.getCustomSubprojectRelativeDir (G:\ion\imagePicker\platforms\android\cordova\lib\AndroidProject.js:105:28)
at install (G:\ion\imagePicker\platforms\android\cordova\lib\pluginHandlers.js:106:46)
at ActionStack.process (G:\ion\imagePicker\platforms\android\cordova\node_modules\cordova-common\src\ActionStack.js:56:25)
at PluginManager.doOperation (G:\ion\imagePicker\platforms\android\cordova\node_modules\cordova-common\src\PluginManager.js:114:20)
at PluginManager.addPlugin (G:\ion\imagePicker\platforms\android\cordova\node_modules\cordova-common\src\PluginManager.js:144:17)

(node:1072) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Uh oh!
ENOENT: no such file or directory, open ‘G:\ion\imagePicker\platforms\android\AndroidManifest.xml’
(node:1072) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

1 Like

i have the same error too.

issue solved…it’s already installed but if you checked your app on Ionic-Dev App then it will show above error …but if you test your app by creating apk file on your device then its showing correct result…so check on your android simulator by …ionic cordova build andriod command

Thanks for the suggestion.But when i add the plugin , the manifest file is deleting

Can i use the native camera ionic plugin to upload a photo from gallery??

but if you use native camera plugin then it will pick only 1 image right ?? so if you have to select multiple images then use image picker plugin

1 Like

use this coomand to check "cordova-check-plugins " if plugin is showing installed then create apk directly …no problem with mainfest file

1 Like

cp: copyFileSync: could not write to dest file (code=ENOENT):D:\projectfolder_path\platforms\android\res\xml\config.xml…

this error comes when building

Try to update cordova ,and plugin and try another new project then fire all
command

i already tried that

sorry i don’t have solution for this then…create new topic on forum some another user will give u solution …if you got solution then ping me please

1 Like

hey u got solution ??? please tell me because am facing same problem now ?

soirry dud…i didn’t get anythig

have u try by creating new project ?

change your project andorid platform to 6.4.0 it will work it will generate
apk

hey am making one application …in which task is editing on image…so I use
canvas and showing image on canvas and drawing on image…but now problem is
before adding image with help of drawing brush when i touch on canvas it
draw on canvas …but i want draw on image after adding through camera…not
before so any solution plesae

Sure you can use native camera plugin to upload the file from photolibrary and camera as well

My requirement is to display all images from mobile like a gallery App.

This loads gallery images in a button click where they can be selected. I don’t want any button click instead just read all images from phone automatically when page load. Can someone please guide me to the right direction
please any one help me