Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Certain characters in formal names cause problems with Android #696

Closed
freakboy3742 opened this issue Apr 4, 2022 · 0 comments
Closed
Labels
android The issue relates to Android mobile support. bug A crash or error in behavior.

Comments

@freakboy3742
Copy link
Member

Certain characters (/\:<>"?*|) are prohibited from project paths on Android. These names are legal on other platforms

In addition, the character ! causes problems when used as part of a path name.

To Reproduce
Steps to reproduce the behavior:

  1. Run briefcase new, using a formal name of Hello! or Hello?
  2. Run briefcase run android

Using Hello!, the build will fail with the error:

[hello] Building Android APK...
Exception in thread "main" java.lang.RuntimeException: Could not determine wrapper version.
        at org.gradle.wrapper.GradleWrapperMain.wrapperVersion(GradleWrapperMain.java:111)
        at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Caused by: java.lang.RuntimeException: No build receipt resource found.
        at org.gradle.wrapper.GradleWrapperMain.wrapperVersion(GradleWrapperMain.java:97)
        ... 1 more

Error while building project.

[hello] Building Android APK...

FAILURE: Build failed with an exception.

  • Where:
    Settings file '/Users/rkm/projects/beeware/briefcase/local/hello/android/gradle/Hello?/settings.gradle' line: 2

  • What went wrong:
    A problem occurred evaluating settings 'Hello?'.

The project name 'Hello?' must not contain any of the following characters: [/, , :, <, >, ", ?, *, |]. Set the 'rootProject.name' or adjust the 'include' statement (see https://docs.gradle.org/7.2/dsl/org.gradle.api.initialization.Settings.html#org.gradle.api.initialization.Settings:include(java.lang.String[]) for more details).

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 633ms

Error while building project.


**Expected behavior**

App should build and start.

**Environment:**
 - Operating System: All
 - Python version: All
 - Software versions:
   - Briefcase: 0.3.6


@freakboy3742 freakboy3742 added bug A crash or error in behavior. android The issue relates to Android mobile support. labels Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android The issue relates to Android mobile support. bug A crash or error in behavior.
Projects
None yet
Development

No branches or pull requests

1 participant