【Unity 3D】打安卓包报错:Package Name has not been set up correctly

最近公司推出新的 unity3d SDK,对于 unity 小白的我真是头大,抽空把自己遇到的一些坑记录下来,防止后续自己遗忘,也给路过的新手遇到同类问题时参考,话不多说,接下来进入正题:

【问题描述】在android环境下build报错,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.

【具体解决方案】

1.打“Edit” —— “Project Settings” —— “Player” —— 设置“Company Name”、“Product Name”;

是不是以为这样就好了。。。NO!!!

2.重点来了,在“Player”设置页面往下拉。。。切换到android的设置页,设置“Package Name”跟上面的一致,再次编译运行就可以啦!是不是很简单呢,但是小白我搜了很久呢。。。

猜你喜欢

转载自blog.csdn.net/csdncsdn_csdncsdn/article/details/106399200