Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Cannot Build Android When Package Name Not Follow 'com.company.product' Convention Unity 2021.3

Discussion in 'Android' started by Chzero, May 12, 2022.

  1. Chzero

    Chzero

    Joined:
    Sep 9, 2015
    Posts:
    7
    My game package name current format is 'company.product' and its already published, built using Unity 2020. Now I am about to switch to Unity 2021.3, but in Unity 2021 the package name must use format 'com.company.product'. It is imposible to change package name since its already published. Is there any solution to build my game in Unity 2021?

    In Unity 2021 I cannot build


    Thanks
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,682
  3. Chzero

    Chzero

    Joined:
    Sep 9, 2015
    Posts:
    7
    Thanks for the solution, I will try.

    Yes it is already published to Google Play, that the reason I can't change the package name.

    Thanks
     
  4. Caselli

    Caselli

    Joined:
    Jan 26, 2015
    Posts:
    1
    Actually, Unity Editor is trying to force an incorrect guideline and therefore needs to be fixed in future Unity versions. (Reported as a bug.)
    The actual guidelines are the following:
    • It must have at least two segments (one or more dots).
    • Each segment must start with a letter.
    • All characters must be alphanumeric or an underscore [a-zA-Z0-9_].
    (source: https://developer.android.com/studio/build/configure-app-module )
     
  5. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,682
    Seems it was reported by somebody else, it should be fixed in 2021.3.4f1
     
    Caselli likes this.