Image picker plugin is fail to install in ionic version 3


#1

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.


#2

i have the same error too.


#3

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


#4

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


#5

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


#6

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


#7

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


#8

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

this error comes when building


#9

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


#10

i already tried that


#11

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


#12

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


#13

soirry dud…i didn’t get anythig


#14

have u try by creating new project ?


#15

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


#16

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


#17

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