Urgent: adding SQLite plugin causes error in Ionic2 project


#1

My ionic system information:
Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.4
Ionic CLI Version: 2.1.18
Ionic App Lib Version: 2.1.9
Ionic App Scripts Version: 0.0.47
ios-deploy version: 1.9.0
ios-sim version: 5.0.11
OS: OS X El Capitan
Node Version: v6.9.1
Xcode version: Xcode 8.1 Build version 8B62

I created a new project, added Android platform. Then I added SQLite plugin using following CLI command:

$ ionic plugin add cordova-sqlite-storage

When I compiled the project using following CLI command:

$ ionic build android

I got following error:

:transformNative_libsWithStripDebugSymbolForDebug
FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:transformNative_libsWithStripDebugSymbolForDebug’.

java.lang.NullPointerException (no error message)

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

BUILD FAILED

Total time: 13.564 secs

Error: /Users/zhou/Documents/Projects/ionic/CourseProjects/Test/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:transformNative_libsWithStripDebugSymbolForDebug’.

java.lang.NullPointerException (no error message)

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