# Urgent: adding SQLite plugin causes error in Ionic2 project

**URL:** <https://forum.ionicframework.com/t/urgent-adding-sqlite-plugin-causes-error-in-ionic2-project/75456>\
**Category:** ionic-v3\
**Created:** [January 7, 2017, 1:27pm UTC](https://forum.ionicframework.com/t/urgent-adding-sqlite-plugin-causes-error-in-ionic2-project/75456 "2017-01-07T13:27:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cuteant](https://avatars.discourse-cdn.com/v4/letter/c/74df32/32.png) [@cuteant](https://forum.ionicframework.com/u/cuteant)\
**Post date:** [January 7, 2017, 1:27pm UTC](https://forum.ionicframework.com/t/urgent-adding-sqlite-plugin-causes-error-in-ionic2-project/75456/1 "2017-01-07T13:27:49Z")

</div>

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.
