Tiago Ramos
Posts: 0
Joined: Thu Feb 27, 2014 3:00 pm

Problem with SQLite databases on android

When trying to create an SQLite database on android platform, the PluginManager accuses the error"exec() call to unknown plugin: Storage"

What might the problem be?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Problem with SQLite databases on android

Hello Tiago,
Do you use this tutorial
http://docs.appery.io/tutorials/build... ?

Tiago Ramos
Posts: 0
Joined: Thu Feb 27, 2014 3:00 pm

Problem with SQLite databases on android

I'm using similar code to that in the tutorial to generate the sqlite database. The code works fine on the in-browser tester.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Problem with SQLite databases on android

Did you test it in appery tester? What Android version do you use? We'll check it.

Tiago Ramos
Posts: 0
Joined: Thu Feb 27, 2014 3:00 pm

Problem with SQLite databases on android

It works fine on appery tester.
I'm not sure if this might be relevant, but I'm working on a project someone had been working on before, and I've changed app settings such as the project name. Of note is that similar SQLite database code worked on previous versions of this project.

Tiago Ramos
Posts: 0
Joined: Thu Feb 27, 2014 3:00 pm

Problem with SQLite databases on android

Before I started working on this project, the external libraries version was 1.1 and the min/target android version were 2.2.x. I've changed those values to 1.2 and 3.0.x respectively.

I've tried changing these values back to the previous values, and now the app fails to launch properly at all, throwing an alert that reads "[ERROR] Error initializing Cordova: Class not found."
I know for a fact that this very app used to work with these settings, so it seems like changing these settings somehow messes up the appery .apk build proccess.

Tiago Ramos
Posts: 0
Joined: Thu Feb 27, 2014 3:00 pm

Problem with SQLite databases on android

I've made a backup of my project, created a new project from that backup, and without changing anything compiled an .apk. It's working perfectly.

I'm glad that I managed to get this to work, but there's clearly some problem with appery's .apk building proccess.

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Problem with SQLite databases on android

Lets try "Undo all source changes" on Android folder. This should fix the error. http://docs.appery.io/tutorials/sourc...

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Problem with SQLite databases on android

Could you tell us what is the problem with building process?

Tiago Ramos
Posts: 0
Joined: Thu Feb 27, 2014 3:00 pm

Problem with SQLite databases on android

This might have done the trick. Since I already managed to work my way around the issue, I won't be trying that right now, though.

Return to “Issues”