pwa-builder / PWABuilder

The simplest way to create progressive web apps across platforms and devices. Start here. This repo is home to several projects in the PWABuilder family of tools.
https://docs.pwabuilder.com
Other
2.69k stars 282 forks source link

Error generating android package: not a valid Android package name #2282

Closed jirkapinus closed 2 years ago

jirkapinus commented 2 years ago

I received the following error when generating a package for https://m.slunecno.cz

Error: Error generating Android package. Status code: 500 Error: Internal Server Error Details: Error generating app package: Command failed: ./gradlew assembleRelease --stacktrace

FAILURE: Build failed with an exception.

ghost commented 2 years ago

Hello jirkapinus, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will investigate the issue and help solve it ASAP. Other community members may also look into the issue and provide feedback 🙌

jirkapinus commented 2 years ago
play

Or PWA Builder does this screen and package cannot download.

JudahGabriel commented 2 years ago

As the error message states, the issue is that your package name is an invalid Android package name:

AAPT: error: attribute 'package' in tag is not a valid Android package name: 'cz.slunecno.2.m.twa'.

The issue there is that each section separated by period cannot begin with a number.

Change your package name to something like cz.slunecno.m.twa (just omit the '2'). Then it should work. Give it a try.

In the meantime, we'll update our validation code to ensure this can't happen.

jirkapinus commented 2 years ago

thank you now it works

closed