cordova-sqlite-storage Error

  • 1
  • Question
  • Updated 4 years ago
Getting this error while trying to update an app:
"Error - Plugin error (you probably need to remove plugin files from your app): Fetching plugin "cordova-sqlite-storage" via npm Installing "cordova-sqlite-storage" at "1.4.1" for ios Error during processing of action! Attempting to revert... Failed to install 'cordova-sqlite-storage':Error: Uh oh! ....."
There is no cordova-sqlite-storage plugin in my config file, I am guessing PhoneGap inserts it. Please help.
Photo of Amit Implico

Amit Implico

  • 6 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Has been asked several times in the past two days.
The plugin now requires PGB cli-6.x
Photo of Amit Implico

Amit Implico

  • 6 Posts
  • 0 Reply Likes
I am using PhoneGap version cli-6.0.0. Still the error.
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
I missed
There is no cordova-sqlite-storage plugin in my config file, I am guessing PhoneGap inserts it. Please help.

This is really strange, because PGB doesn't include it automatically.

If your zip file is available online somewhere, please post its url and I'll be happy to have a look (tomorrow morning, CET).
Photo of Amit Implico

Amit Implico

  • 6 Posts
  • 0 Reply Likes
Please see screenshot below
Photo of Amit Implico

Amit Implico

  • 6 Posts
  • 0 Reply Likes
Here is the link: https://www.dropbox.com/s/33emi330xfp...

I am not a web development expert. My background is SAP ABAP and I using an add on tool called Netpune to develop a SAPUI5 app. The zip file is generated by the tool. Please excuse my ignorance in the web development world but I could not see the cordova-sqlite-storage plugin in the config.xml file. I tried adding the plugin setting older version in the config file based on some quick searches in the forum. That didn't help either.
Thanks in advance for looking into it.
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Amit
Since this is your first post, please answer the following question:
- is this your first hybrid app?
- are you using Desktop App?
- are you using CLI, Build, or SDK? Please do not assume the answer, please read the link.

Thanks
Jesse
Photo of Amit Implico

Amit Implico

  • 6 Posts
  • 0 Reply Likes
Hi Jesse,

I will make sure to add complete details in the future posts. I have got the solution I was looking for.

Appreciate your response.

Thanks,
Amit
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Hi Amit.

I downloaded your zip file, which is looking pretty good. Here is some feedback:

1. You do have that plugin in your config.xml!
Here are the first lines of your config:
<?xml version="1.0" encoding="UTF-8"?>

<widget version="1.0.2" versionCode="102"
id="com.implico.boldashboard01"
xmlns:gap="http://phonegap.com/ns/1.0"
xmlns="http://www.w3.org/ns/widgets">
<name>Station Mgr.</name>
<description>Service Station Dashboard</description>
<plugin source="npm" name="cordova-sqlite-storage"/>
<plugin source="npm" name="cordova-plugin-file-opener2"/>


If you don't need these, then simply remove them.

2. However, if you do need those plugins, then I recommend going for cli-6.1.0 instead of
<preference name="phonegap-version" value="cli-6.0.0"/>

3. Your collection of icons and splashes is not complete. I'd recommend:
for Android: densities mdpi - xxhdpi
for iOS, everything that's required according to
https://developer.apple.com/library/i...
...and some of both for Winphone, since you apparently want to build for that platform, too.

4. Since you have no preference for 'orientation', you need all splashes in both portrait and landscape.

5. You have:
<platform name="ios">

<preference name="SplashScreenDelay" value="1"/>
</platform>
<platform name="android">
<preference name="SplashScreenDelay" value="20000"/>
</platform>
<preference name="AutoHideSplashScreen" value="false"/>


I think the delay periods are a bit strange, but you'll fine tune that.
More remarkable, though, is the fact that you define a delay, and at the same time set autohide to 'false'. That combination makes no sense.
Do you want the splashes to disappear automatically after a fixed time period, or do you want to dismiss the splashscreen as soon as your first page is ready to be displayed (I recommend the latter)?

EDIT: I just saw in your index.html, that you are indeed dismissing the splashscreen using the hide() method. So, you can safely remove the two delays from your config.
And then you can safely remove all platform elements as well, so the default (build for all three platforms) will come into effect.

6. For iPad, you will need the statusbar plugin from npm as well, otherwise it won't scale well.

7. This will lead to build errors:
<feature name="http://api.phonegap.com/1.0/network"/>
so please remove that line. You don't need it, since you already have the proper plugin.

Not many denizens use SAPUI5. Recently, we only had one such developer, with whom I've had quite a thread, unfortunately not always very successful. The thread is here:
http://community.phonegap.com/nitobi/...

Luckily, your config looks a lot more familiar, so I'm confident that your app will soon build nicely.
Photo of Amit Implico

Amit Implico

  • 6 Posts
  • 0 Reply Likes
Hi Petra,

I really appreciate your help. I was able to successfully generate the phonegap app.
Thank you so much for taking out time to review my work, I really feel obliged. I will do my part in passing the knowledge to others :)

Thanks,
Amit
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Thanks for reporting back.
Glad you have it working!
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Amit,
can you please report your fix so other developers will be helped with your solution?

Thanks
Jesse