wymsee / cordova-imagePicker

Cordova Plugin For Multiple Image Selection
MIT License
407 stars 858 forks source link

Bug on compile Android #127

Open mvofreire opened 8 years ago

mvofreire commented 8 years ago

When i run command 'cordova run android' outputs the following code

:compileDebugJavaWithJavacNote: C:\Svn\Mkf_Mobile\branch\features\21055-questionario-itambe\html5\mkfMobile\platforms\android\src\com\synconset\MultiImageChooserActivity.java uses or overrides a deprecated API.

:compileDebugNdk UP-TO-DATE
:compileDebugSources
:transformClassesWithDexForDebugNote: Recompile with -Xlint:deprecation for details.
Note: C:\Svn\Mkf_Mobile\branch\features\21055-questionario-itambe\html5\mkfMobile\platforms\android\src\com\synconset\MultiImageChooserActivity.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
djabif commented 8 years ago

Hi @mvofreire, same issue here. Did you manage to solve it? It is happening when I run the app for Android 6.0

mvofreire commented 8 years ago

Hi @djabif , i solved my issue updating com.synconset.imagePicker from 1.0.6 for 1.0.7 The problem is because the need a close tag eg. in plugin.xml file.

Good Luck!!

djabif commented 8 years ago

Thanks! I will try that. Is the plugin working for you on Android 6.0?

mvofreire commented 8 years ago

Yeap!! But i had a problem with whitelist plugin. I needed add the following code in config.xml

  <content src="index.html"/>
  <access origin="*"/>
  <access origin="content://*" />
  <access origin="cdvfile://*"/>

  <allow-navigation href="file:///**/*"/>
  <allow-navigation href="*://**.phdesign.com.br/*"/>
  <allow-navigation href="filesystem://**/*"/>
  <allow-navigation href="cdvfile://**/*"/>
djabif commented 8 years ago

Cool, thanks :)

richardmarais commented 7 years ago

Hi mvofreire, I tried adding the following, but when I access cordova-plugin-image-picker, it still just crashes, but if I access cordova-plugin-camera first and allow permission, then it works.

Any ideas?

  <content src="index.html"/>
  <access origin="*"/>
  <access origin="content://*" />
  <access origin="cdvfile://*"/>

  <allow-navigation href="file:///**/*"/>
  <allow-navigation href="*://**.phdesign.com.br/*"/>
  <allow-navigation href="filesystem://**/*"/>
  <allow-navigation href="cdvfile://**/*"/>
luisgls1807 commented 6 years ago

I got similar errors when running ionic cordova build android when I added plugins and solved it like this: Execute terminal

cordova clean cordova build

now if you can run

ionic cordova build android and ionic cordova run android

I hope it is useful