Bundle Identifier Is Set But Unity Still Complains

Upon attempting to build my app for Android, I see this message:

Error building Player: UnityException: Bundle Identifier has not been set up correctly
Please set the Bundle Identifier in the Player Settings. The value must follow the convention 'com.YourCompanyName.YourProductName' and can contain alphanumeric characters and underscore.
Each segment must not start with a numeric character or underscore.

However, my company name is 10101software (10101 Software). Is there any way I can work around this? Re-branding my company is out of the question.

Also, changing the bundle ID would be inconvenient as the iOS version successfully uses the one that Android can’t (apparently) accept.

Hi!

The company name cannot begin with a digit.

Actually, this is what you get in the error message:

Thanks for responding.

Why must it not start with an underscore? The page you liked to says that the convention is to prefix a package name which starts with a number with an underscore.

Thanks,
-Tristan

@tbg10101 : actually, for Android the rules are even more strict:

package
A full Java-language-style package name for the application. The name should be unique. The name may contain uppercase or lowercase letters (‘A’ through ‘Z’), numbers, and underscores (‘_’). However, individual package name parts may only start with letters.

I guess I’ll have to have my build pipeline edit the value in the player settings file whenever I am building for Android.

Thanks for your help in clarifying the issue @Yury-Habets !

Since the rules are different for iOS and Android, why does the Unity Editor mandate that the values must be the same for both platforms?

That’s a good question, and the answer is probably historical :slight_smile:
It is quite convenient to set the bundle id once, isn’t it?
It does not seem hard to select an id that conforms with the requirements either :wink:

Thank you for the feedback!
Yury

It would be convenient if the rules were the same. :confused:

Except I named my company before Android apps existed and I don’t want to re-register my iOS apps with a new bundle ID. Thus I need to make special exceptions for this hassle. (not Unity’s fault, except for forcing the same value for both)

I’ll put in a feature request with some suggestions on how to make this a bit more friendly to users and accommodate IDs that are different without impacting the users who have IDs that are the same.

1 Like