Closed riteshgharat closed 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 🙌
@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.
Thanks for helping me, it works successfully 👍🏻. I was able to generate Android App.
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.
Where: Build file '/tmp/pwabuilder-cloudapk--25-Mn2OgadT7Pzm/app/build.gradle' line: 42
What went wrong: Could not compile build file '/tmp/pwabuilder-cloudapk--25-Mn2OgadT7Pzm/app/build.gradle'.
1 error
Try: Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Exception is: org.gradle.groovy.scripts.ScriptCompilationException: Could not compile build file '/tmp/pwabuilder-cloudapk--25-Mn2OgadT7Pzm/app/build.gradle'. at org.gradle.groovy.scripts.internal.DefaultScriptCompilationHandler.wrapCompilationFailure(DefaultScriptCompilationHandler.java:195) at org.gradle.groovy.scripts.internal.DefaultScriptCompilationHandler.compileScript(DefaultScriptCompilationHandler.java:143) at org.gradle.groovy.scripts.internal.DefaultScriptCompilationHandler.compileToDir(DefaultScriptCompilationHandler.java:97) at org.gradle.groovy.scripts.internal.BuildOperationBackedScriptCompilationHandler$2.run(BuildOperationBackedScriptCompilationHandler.java:54) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:395) at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:387) at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:157) at org.gradle.internal.operations.DefaultBuildOperationExe