Build failure: Hyphen in Android app id

What platform are you building for?

Android

What framework are you building with?

Cordova

What is your build ID?

2b9ee08c-ba2a-4051-a602-3eb86da34fba

What is your error message?

UserError: Android app id ‘org.anderson-island.andersonislandassistant’: each segment may only contain letters, digits, or underscores.

Please describe the issue:

I have been a volt.build user almost since its inception. I have an app whose id is ‘org.anderson-island.andersonislandassistant’. I have been using this app id in the Google Play Store since 2016. However, as of my last build, volt.build has started checking the app id, and aborts my build.
I should be able to continue to use this id, but set my package name to org.andersonisland.andersonislandassistant:

This would allow me to continue to use my current Play Store listing.
However, volt.build does not seem to support this, or it always validates the id.
Is there any way you can help me?

Cordova has strict requirements for the app ID, however you can override it on Android by using a android-packageName attribute on the widget tag in config.xml.

Thanks. I tried that but still got an error (but a different one):

CONFIG.XML:

  <widget xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android"       id="org.andersonisland.andersonislandassistant" 

android-packageName="org.anderson-island.andersonislandassistant"

        version="1.39.062926"

        android-versionCode="2263"

        android:versionName="1.39.040426">

ERROR:

UserError: Error validating package name.
Must look like: `com.company.Name`.
Currently is: `org.anderson-island.andersonislandassistant`       

Build id: 58f7d6cf-c89e-448d-99f9-5e66d00b851b

LOG:

2026-06-29 23:12:51,257 - Output: Using cordova-fetch for cordova-android
Adding android project…
Error validating package name. Must look like: com.company.Name. Currently is: org.anderson-island.andersonislandassistant

2026-06-29 23:12:51,261 - Error validating package name.
Must look like: com.company.Name.
Currently is: org.anderson-island.andersonislandassistant

We’ll look into this and get back to you.

Can you attempt to run the job again, but enable verbose logging so that we can get a bit more detail in the logs?

You can do this by adding "verbose": true to your voltbuilder.json

Please include the build ID.

I have rerun the build with verbose logging.

The build id is: 1e18695f-187d-4136-83dc-59b9785fa4f8

As you can see, the error happens on validating the package name. The log says:


2026-07-02 05:51:53,117 - Output: No scripts found for hook “before_platform_add”.

No version supplied. Retrieving version from config.xml…

Using cordova-fetch for cordova-android

fetch: Installing cordova-android to /AIAVoltBuild

Removing “cordova-” prefix from cordova-android

Adding android project…

Loaded API for android project /AIAVoltBuild/node_modules/cordova-android

Error validating package name. Must look like: `com.company.Name`. Currently is: `org.anderson-island.andersonislandassistant`

CordovaError: Error validating package name. Must look like: `com.company.Name`. Currently is: `org.anderson-island.andersonislandassistant`

at Object.validatePackageName (/AIAVoltBuild/node_modules/cordova-android/lib/create.js:148:31)

at exports.create (/AIAVoltBuild/node_modules/cordova-android/lib/create.js:216:20)

at createPlatform (/AIAVoltBuild/node_modules/cordova-android/lib/Api.js:337:42)

at /usr/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/platform/addHelper.js:159:28

2026-07-02 05:51:53,117 - CordovaError: Error validating package name. Must look like: `com.company.Name`. Currently is: `org.anderson-island.andersonislandassistant`

2026-07-02 05:51:53,118 - Build failed 1e18695f-187d-4136-83dc-59b9785fa4f8

Thanks,
Bob Bedoll

This is actually a Cordova error and not a VoltBuilder error. Have you changed your config.xml recently? When is the last time you built successfully?

My last successful build with the id of org.anderson-island.andersonislandassistant was 4/4/2026. So about 3 months ago. However I didn’t try rebuilding until 6/28/26, when the build ID was rejected.

Thanks,

Bob

We’re going to continue looking into this.

Any word on how I can proceed?

Thanks,

Bob

We’re rolling out a fix to our beta servers today that should resolve this. Do you have beta access?

As far as I know, I do not have access to your beta servers. But I would be happy to try it on the beta server.

Thanks,

Bob Bedoll