Open reynave opened 5 years ago
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
@reynave pls. provide a screen shot of your build error
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 (cordova-lib@8.1.1) 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.
@thekingrenz23 sorry for late response, its was running well when I use cordova@6.4.0, but now I have use 8.1.2 (cordova-lib@8.1.1), 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
@reynave Is the same issues: https://github.com/wymsee/cordova-imagePicker/issues/262
And this the new repository that resolve my problem: https://github.com/mkihellas/cordova-imagePicker
this plugin doesn't work with cordova 11 and android@latest
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.
cordova 8.1.2 Build Error after install plugin imagesPicker, what's wrong ?