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

cordova 8.1.2 Build Error after install plugin imagesPicker #278

Open
reynave opened this issue Jan 17, 2019 · 7 comments
Open

cordova 8.1.2 Build Error after install plugin imagesPicker #278

reynave opened this issue Jan 17, 2019 · 7 comments

Comments

@reynave
Copy link

reynave commented Jan 17, 2019

cordova 8.1.2 Build Error after install plugin imagesPicker, what's wrong ?

@rafaelmb
Copy link

Is cordova android? If it is check cordova-android version cause version 7.1.3 breaks a lot of plugins and 7.1.4 fixed it

@basurahan
Copy link

@reynave pls. provide a screen shot of your build error

@ccastroelo
Copy link

Hello, same here.

Info:
Ionic:

ionic (Ionic CLI) : 4.9.0 (D:\Users\Claudio\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : ionic1 1.3.4
@ionic/v1-toolkit : 1.0.18

Cordova:

cordova (Cordova CLI) : 8.1.2 ([email protected])
Cordova Platforms : android 7.1.4
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.3.2, (and 7 other plugins)

System:

NodeJS : v8.11.4 (D:\Program Files\nodejs\node.exe)
npm : 6.7.0
OS : Windows 10


Error on build:

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

  • Get more help at https://help.gradle.org

BUILD FAILED in 2s
[ERROR] An error occurred while running subprocess cordova.

    cordova run android exited with exit code 1.

    Re-running this command with the --verbose flag may provide more information.

@reynave
Copy link
Author

reynave commented Feb 2, 2019

@thekingrenz23 sorry for late response,
its was running well when I use [email protected],
but now I have use 8.1.2 ([email protected]), I found this error from "cordova build android"

:app:compileDebugJavaWithJavacC:\xampp\htdocs\nodejs\hello\platforms\android\app\src\main\java\com\synconset\ImageFetcher.java:293: error: Entry is not public in LinkedHashMap; cannot be accessed from outside package
        protected boolean removeEldestEntry(LinkedHashMap.Entry<Integer, Bitmap> eldest) {
                                                         ^
Note: C:\xampp\htdocs\nodejs\hello\platforms\android\app\src\main\java\com\synconset\MultiImageChooserActivity.java uses or overrides a deprecated API. FAILED

Note: Recompile with -Xlint:deprecation for details.
Note: C:\xampp\htdocs\nodejs\hello\platforms\android\app\src\main\java\com\synconset\MultiImageChooserActivity.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 2s
27 actionable tasks: 1 executed, 26 up-to-date
cmd: Command failed with exit code 1 Error output:
C:\xampp\htdocs\nodejs\hello\platforms\android\app\src\main\java\com\synconset\ImageFetcher.java:293: error: Entry is not public in LinkedHashMap; cannot be accessed from outside package
        protected boolean removeEldestEntry(LinkedHashMap.Entry<Integer, Bitmap> eldest) {
                                                         ^
Note: C:\xampp\htdocs\nodejs\hello\platforms\android\app\src\main\java\com\synconset\MultiImageChooserActivity.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\xampp\htdocs\nodejs\hello\platforms\android\app\src\main\java\com\synconset\MultiImageChooserActivity.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 2s

@ccastroelo
Copy link

@reynave
Is the same issues:
#262

And this the new repository that resolve my problem:
https://github.com/mkihellas/cordova-imagePicker

@pixellet14
Copy link

this plugin doesn't work with cordova 11 and android@latest

@pixellet14
Copy link

I have figured out an issue. This plugin (the latest version) is not compatible with android 11. It throws an error that "theme.xml file already exists". It's because you have used a file with the same name in the plugin to get stored in the same location while android 11 comes with that file already. And even after forced installation it is not able to build, it keeps failing.

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

5 participants