Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Package Name has not been set up correctly

I am making a game on Unity following this tutorial on YouTube:

I am brand new to Unity and Android Game Development, in the video I got to 35:16 and we are building the scenes and I clicked build and it is starting to load but when it gets to half-way done I get this error as seen in the image "Package Name has not been set up correctly

Please set the Package Name 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."

Now, I am a 13 year old developer so I am quite young, I am not understanding what it is asking me to do and I don't know how to fix it, if a person could help me I would be so greatful... If needed we could go on Discord, Skype or Team Viewer to help me.

enter image description here

like image 738
Jack Thomas Avatar asked Jan 03 '18 20:01

Jack Thomas


People also ask

How to set up Package name in Unity?

In the latest Unity version, to fix that problem you need to go to Edit > Project Settings > Player . Because you're building for Android, you select the Android icon. We can find, under Identification, Package Name. The Package Name has to follow some rules.

Does package name matter?

We recommend you always put a name on the package, preferably the correct name, to avoid misdelivery, failed delivery attempts, lost packages, or similar.

Is package name important?

As an Android Developer, you should know that the Package Name that you choose for your app is very important. We are referring to the Package Name of the application which we declare in the Manifest. xml rather than the Java package name (although they will be identical).

How do I check if a package name is available?

To check whether your package name is in use on the Play Store, use the Play Store, with a URL of https://play.google.com/store/apps/details?id=your.package.name.goes.here . You will need to contact the other "major apk markets" to see if they offer a similar facility.


2 Answers

In the latest Unity version, to fix that problem you need to go to Edit > Project Settings > Player .

Because you're building for Android, you select the Android icon.

Unity Project Settings

We can find, under Identification, Package Name.

Unity Package Name

The Package Name has to follow some rules.

Domain like structure with at least 3 parts. Usually start with "com.COMPANY.APPNAME"

You can use alphanumeric characters and underscores only.

Each domain level must not start with a number.

For instances, you can change to "com.android.game".

This fixes the problem.

like image 184
Tiago Martins Peres Avatar answered Nov 15 '22 18:11

Tiago Martins Peres


Edit > Project Settings > Player. There should be a textbox in there labeled "Bundle Identifier" set it to something like "com.Fireboy.MyFirstGame" and then build.

Also, when you're ready to release to production you'll need to use the "Publish Settings" section to sign your apk in release mode. By default Unity signs it in Debug mode, which Google Play will not allow you to submit.

like image 44
Brandon Miller Avatar answered Nov 15 '22 18:11

Brandon Miller