Software Archive
Read-only legacy content
17060 Discussions

com.brodysoft.sqliteplugin error only in Crosswlak Android build

Hamilton_Tenório_da_
Valued Contributor I
915 Views

Today I made a build of one app that I had builded several times in the last month. For iOS, the build was OK, but when I try to build in Crosswalk Android, the build process stop without a explicit error. See details:

The build failed.
An error occurred while building the application. Verify your build assets are correct and try again.
Build Log:
  • The App ID is "com.hamiltonhtsnet.com.br.confirmakiPro"
  • The App Name is "ConfirmAki PRO: sua lista VIP"
  • Crosswalk Version: 14.43.343.17
  • Plugin "org.apache.cordova.device" (0.2.13) installed.
  • Plugin "org.apache.cordova.splashscreen" (0.3.5) installed.
  • Plugin "org.apache.cordova.network-information" (0.2.14) installed.
  • Plugin "org.apache.cordova.vibration" (0.3.12) installed.
  • Plugin "org.apache.cordova.dialogs" (0.2.11) installed.
  • Plugin "org.apache.cordova.camera" (0.3.4) installed.
  • Plugin "phonegap-plugin-barcodescanner" (4.0.1) installed.
  • Plugin "com.brodysoft.sqlitePlugin" (1.0.6) installed.

 

 

 

 

 

 

 

 


 

 

After some tests, removing the plugins one by one, I noticed that the com.brodysoft.sqliteplugin is that is causing the issue.

Looking in the plugin page (https://github.com/brodysoft/Cordova-SQLitePlugin-2014.07), there isn´t any change for a long time.

I use this plugin this way:

"name": "com.brodysoft.sqliteplugin",
        "origin": "com.brodysoft.sqliteplugin",
        "originType": "cordova.io",

Where can be the problem? How to solve this? The problem can be in cordova repository? 

0 Kudos
3 Replies
Rodrigo_M_1
New Contributor II
915 Views

Hi Hamilton, you are right looks like they didn't change anything for the last 2 years.... but you can see a Warning:

WARNING: breaking change for Android version

The automatic ".db" database file extension is now removed for the Android version, for consistency with the iOS & WP8 versions. For an existing app, you may have to open an existing database like:

var db = window.sqlitePlugin.openDatabase({name: "my.db"});

 

I Just start a new application that I was looking for a local DB, and I have to make a decicion between the SQLLitePlugin and IndexedDB.

I just choose the IndexedDB because the SQLLite is no long supported... So in the future it's going to be a problem!

May you could try migrate your SQLLite code to Indexed DB that's looks a good solution as well!

0 Kudos
Hamilton_Tenório_da_
Valued Contributor I
915 Views

@Rodrigo> I saw this warning, but the problem is not during the use. When I try to build the XDK stop with no additional information. Change to Indexed CB is an option to the future...

0 Kudos
PaulF_IntelCorp
Employee
915 Views

Hamilton, there is a newer version of that plugin, here: https://github.com/litehelpers/Cordova-sqlite-storage as referenced in the repo that you mentioned. I recommend you move to that version to see if it eliminates the problems you are encountering.

0 Kudos
Reply