an-rahulpandey / cordova-plugin-dbcopy

Copy SQLite Database from www folder to default app database location
Apache License 2.0
89 stars 47 forks source link

Issue when building Android for ionic #53

Closed agneshoving closed 6 years ago

agneshoving commented 6 years ago

Since the last update from this plugin I am having trouble building the app for Android using the Ionic framework. When I remove this plugin the build is working fine.

I'm getting the following error:

BUILD FAILED in 4s
27 actionable tasks: 1 executed, 26 up-to-date
Error: cmd: Command failed with exit code 1 Error output:
C:\path\to\project\platforms\android\src\me\rahul\plugins\sqlDB\sqlDB.java:129: error: local variable dbName is accessed from within inner class; needs to be declared final
                        myInput = cordova.getActivity().getAssets().open("www/" + dbName);
                                                                                  ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

FAILURE: Build failed with an exception.
an-rahulpandey commented 6 years ago

Can you install the plugin from github url and try again?

agneshoving commented 6 years ago

Works again, thank you :)