Telerik-Verified-Plugins / ImagePicker

Cordova Plugin For Multiple Image Selection
MIT License
181 stars 330 forks source link

android 7.0 install plugin fails #92

Open pascalll922 opened 6 years ago

pascalll922 commented 6 years ago

Upgrading to Android platform 7.0 fails. I get the following error: Failed to install 'com.synconset.imagepicker': Error: ENOENT: no such file or directory, open '../platforms/android/AndroidManifest.xml'

rajeevriitm commented 6 years ago

I am facing same issue . did you solve the problem?

pascalll922 commented 6 years ago

No, downgraded back to Cordova Android 6.4..

leonardosalles commented 6 years ago

Cordova 7 has changed app structure, now AndroidManifest.xml is inside app/src/main/ plugin should be updated to use it with Cordova Android 7.

hiepxanh commented 6 years ago

cordova-android-7 there is a release note here, but i don't know how to do

jasonz1987 commented 6 years ago

+1 need this.

sifang commented 6 years ago

+1 please!

vksgautam1 commented 6 years ago

any solution

lAndresul commented 6 years ago

Please! Help US!

EddyVerbruggen commented 6 years ago

Happy to merge a PR as usual.

sungsong88 commented 6 years ago

Here is my for-now solution...

  1. Make sure Image picker is not installed(see if it's in the cordova plugin ls)
  2. Run cordova platform add android to setup android platform
  3. Now, create a symlink to legacy location(android/AndroidManifest.xml). Below is the commend for my case.
    $ln -s /Users/andre/my_project/platforms/android/app/src/main/AndroidManifest.xml /Users/andre/my_project/platforms/android/AndroidManifest.xml
  4. Now finally install Image picker plugin!
    $cordova plugin add https://github.com/Telerik-Verified-Plugins/ImagePicker.git --variable PHOTOLIBRARY_USAGE_DESCRIPTION="Allow the app to access your photos" --variable PHOTO_LIBRARY_USAGE_DESCRIPTION="Allow the app to access your photos"

Creating the symlink did the trick for me. It's works for now...

fedemoreno commented 6 years ago

Upgrading to Android platform 7.0 fails. I get the following error: Failed to install 'com.synconset.imagepicker': Error: ENOENT: no such file or directory, open '../platforms/android/AndroidManifest.xml'

fedemoreno commented 6 years ago

@EddyVerbruggen could you give us a hand, please? Thanks in advance!

EddyVerbruggen commented 6 years ago

@fedemoreno Happy to merge a PR!

ratanahing commented 6 years ago

Hi, does anyone have any solution to this?

reaVen- commented 6 years ago
<!-- An existing config.xml -->
<edit-config file="AndroidManifest.xml" target="/manifest/application" mode="merge">

<!-- needs to change to -->
<edit-config file="app/src/main/AndroidManifest.xml" target="/manifest/application" mode="merge">

this needs to be changed

ratanahing commented 6 years ago

@reaVen- I am using ionic 3, I tried to put this into my config.xml, but it does not work. Do you have any idea which config.xml I should amend?

reaVen- commented 6 years ago

@ratanahing I downgraded to android@6.4.0 and used this fork https://github.com/shaik305/cordova-plugin-image-picker.git

ratanahing commented 6 years ago

@reaVen- Thanks for reply. I am currently stuck with android@7.0.0 coz of other dependencies. Do we have any solution?

wilmanh commented 6 years ago

Hi, i need this solution too... anyone? i cannot downgrade

gusfravo commented 6 years ago

Downgrade the Cordova Android.

  1. cordova platform rm android
  2. cordova platform add android@6.4

Ionic.

  1. ionic cordova platform rm android
  2. ionic cordova platform add android@6.4
ishan123456789 commented 6 years ago

Anyone with a solution for android 7 ?????????

pishonx commented 6 years ago

facing the same problem over here, i spent some hours..not solution found yet, I installed the latest android@~7.1.0

pistou commented 6 years ago

I found this hook

In your config.xml file add:

<platform name="android">
        <hook src="hooks/patch-android-studio-check.js" type="before_plugin_install" />
        <hook src="hooks/patch-android-studio-check.js" type="before_plugin_add" />
</platform>

And then you can install.

souleymane98 commented 6 years ago

For debbug your project remove in Config.xml ! after in the terminal tape : cordova rm platform android after : cordova add platform android after : ionic cordova build android ! it all !

ahmedelatab commented 4 years ago

@pistou

Your solution had worked for me after long stuck with error prompting that MultiImageClass has not been added to Manifest.xml.

Appreciation!