IONIC ERROR: Ionic Cordova build android

Asked

Viewed 334 times

-1

(node:8160) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: cmd: Command failed with exit code 1 Error output:
C:\Users\lusan\PhpstormProjects\pwlc\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: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\Users\lusan\PhpstormProjects\pwlc\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 5s (Node:8160) [DEP0018] Deprecationwarning: Unhandled Promise rejections are deprecated. In the Future, Promise rejections that are not handled will terminate the Node.js process with a non-zero Exit Cod and.

  • 1

    Could you add more information? Code you are testing, environment used, etc.

  • I put as an answer

  • You can [Edit] your question to add the information, the answer area is not to be used for other functions

1 answer

0

@ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

global Packages:

cordova (Cordova CLI) : 8.0.0

local Packages:

@ionic/app-scripts : 3.1.8
Cordova Platforms  : android 6.2.3
Ionic Framework    : ionic-angular 3.9.2

System:

Node : v8.9.4
npm  : 5.6.0
OS   : Windows 10

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : pro

Browser other questions tagged

You are not signed in. Login or sign up in order to post.