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

Build error in v 2.1.0 #56

Closed FLATT-Dev closed 5 years ago

FLATT-Dev commented 5 years ago

I got the following error building v 2.1.0 for a Cordova app \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); v 2.0.0 works fine I'm using jdk1.8.0_131 Anyone else encountered this? Thanks Andy

an-rahulpandey commented 5 years ago

dbName is declared final on line number 93, can you check at that line and let me know

FLATT-Dev commented 5 years ago

No it's not.Looks like it did not make it into the release build. Andy

On Mon, Sep 24, 2018 at 11:15 PM, Rahul Pandey notifications@github.com wrote:

dbName is declared final on line number 93, can you check at that line and let me know

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/an-rahulpandey/cordova-plugin-dbcopy/issues/56#issuecomment-424219733, or mute the thread https://github.com/notifications/unsubscribe-auth/ACBC95a9nx5eXcluf42kLz7wA1jOMAAeks5uecn9gaJpZM4W3CRW .

an-rahulpandey commented 5 years ago

Please install 2.1.1

FLATT-Dev commented 5 years ago

Builds and works fine. Thank you! Andy

On Wed, Sep 26, 2018 at 7:39 AM, Rahul Pandey notifications@github.com wrote:

Please install 2.1.1

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/an-rahulpandey/cordova-plugin-dbcopy/issues/56#issuecomment-424740155, or mute the thread https://github.com/notifications/unsubscribe-auth/ACBC979WLHNtSMcY72yFZYevKLTiCwT3ks5ue5GSgaJpZM4W3CRW .