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.75k stars 284 forks source link

Error generating android package is pwabuilder #2101

Closed riteshgharat closed 3 years ago

riteshgharat commented 3 years ago

I received the following error when generating a package for https://mathriddles.netlify.app

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 3 years ago

Hello imritpro, 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 🙌

JudahGabriel commented 3 years ago

@imritpro

This is a bug caused by failure to escape your shortcut string, "Let's Play now". We'll fix this.

In the meantime, here's a workaround: in your web manifest, change your shortcut name from "Let's Play now" to "Let’s Play now" (notice proper apostrophe, rather than single tick mark).

Once you make that change, PWABuilder will be able to generate your Android package successfully. Give it a try and let us know.

@andreban

It looks like Bubblewrap still has a string escaping issue here, as the shortcut name, "Let's Play now" is not escaped, resulting in a build error.

riteshgharat commented 3 years ago

Thanks for helping me, it works successfully 👍🏻. I was able to generate Android App.