Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug on compile Android #127

Open
mvofreire opened this issue Feb 5, 2016 · 7 comments
Open

Bug on compile Android #127

mvofreire opened this issue Feb 5, 2016 · 7 comments

Comments

@mvofreire
Copy link

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
Copy link

djabif commented Mar 3, 2016

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

@mvofreire
Copy link
Author

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
Copy link

djabif commented Mar 3, 2016

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

@mvofreire
Copy link
Author

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
Copy link

djabif commented Mar 3, 2016

Cool, thanks :)

@richardmarais
Copy link

richardmarais commented Jul 18, 2016

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants