PhoneGap Build to VoltBuilder

I am new to VoltBuilder. Currently trying to upload my project and I am getting an error.
I have read through the tutorials, but this is over my head. I am very nervous about changing anything in the config.xml. I copied and pasted the original config.xml (from a sample I think) and it worked, but have no working knowledge about what any of it means.

VoltBuilder run started at 2021-03-19 13:39:13.491439
Plan: Indy - AppStudio
Preflight Check
Warning: 'package.json' found in project, will not be used.
Warning: 'build.json' found in project, will not be used.
adding android to xmlns
Output: Thanks for opting into telemetry to help us improve cordova.

Output: App id contains a reserved word, or is not a valid identifier.

App id (in config.xml) contains a reserved word, has invalid characters, or is not a valid identifier.
For iOS, check that the application-identifier in your .mobileprovision file is a reverse domain-style identifier,
such as com.cordova.hellocordova.
Check the log for more information.
Build dd8b7a3f-35dd-4806-8d08-99c58600bfca failed

Let’s take these one at a time. Fix them, then let’s see what comes next.

Warning: 'package.json' found in project, will not be used.
Warning: 'build.json' found in project, will not be used.

You have a couple of files in your project which probably shouldn’t be there. VoltBuilder creates them from the other files you pass to it. To get rid of these messages, delete these files in your project.

Output: App id contains a reserved word, or is not a valid identifier.

App id (in config.xml) contains a reserved word, has invalid characters, or is not a valid identifier.
For iOS, check that the application-identifier in your .mobileprovision file is a reverse domain-style identifier,
such as com.cordova.hellocordova.

Have a look at config.xml in Project Properties. It’s in the VoltBuilder & Cordova section. What is in the id clause? It should be something like this:

id = "com.nsbasic.{id}"

(with your company, not nsbasic)

this is a copy and paste
id = “com.nsbasic.{id}”

The value of ‘id’ comes from your app. What is the name of your app as saved?

App name is PedCalc

This is what the line says currently - id = “com.nsbasic.{id}”

So am I to make it say this - id = “PedCalc.{id}” ?

Would you run it again? I’ll have a look in the logs.

Just ran again. Same error message. Do you need me to send a copy of the log?

How are you submitting to VoltBuilder? The proper way to do this is from the Run menu - choose Make Native App with VoltBuilder.

The build is going ok. This is where I am having the problems . . .

That’s not the correct way to submit to VoltBuilder from AppStudio. It will not work.

Please try the method suggested in my last email.

This is what I am doing.

  1. Run > Make Native App with VoltBuilder
  2. I get an APK file that says PedCalc.debug
  3. I make a zip file of that APK
  4. I drag and drop to the Android button on ‘Upload your App’
  5. I get an error message now that says.
    “config.xml file not found.
    Check your folder structure.
    See How to set up your project | VoltBuilder
    Build f518a10a-8ead-46fd-af3d-6fa8750cbd1c failed”

P.S. Up to this point, I had been making a zip folder of the project itself and getting the previous error messages that I sent. Now as I understand it, I should have been zipping the APK.

You’re done at Step 2 - VoltBuilder has run and returned an Android APK file.

The rest of the steps are unnecessary and messing you up.

1 Like

I bet that’s the longest time it has taken anyone to explain a 1 click process. Thanks.

I guess I was expecting a non-debug app as the final result.

1 Like

To get a release version of app, change the Cordova Command in Project Properties (VoltBuilder section).

1 Like

Thanks for all your help.

Signing off.