UnityException: Package Name has not been set up correctly

UnityException: 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.
UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message, System.Exception ex)
UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message)
UnityEditor.Android.PostProcessor.Tasks.GenerateManifest.ThrowIfInvalid (System.String packageName)
UnityEditor.Android.PostProcessor.Tasks.GenerateManifest.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport report)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (BuildPostProcessArgs args)
UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTargetGroup targetGroup, BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:272)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

 

在PlayerSettings->OtherSettings->Identification->PackageName 中进行修改

将公司和文件名称进行覆盖,修改为com.(公司名称).(产品名称)

修改如图:

 

  • 4
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
As an AI language model, I don't have access to your system's specific information. However, the error message "Package 'zip' has no installation candidate" usually means that the package manager on your system cannot find a package named "zip" to install. This could be due to various reasons such as: - The package name is incorrect or misspelled. - The package repository is not configured correctly or not available. - Your system is not up to date and needs to be updated before installing the package. To resolve this issue, you can try the following steps: 1. Check if the package name is correct by running the following command: ``` apt-cache search zip ``` This should show you a list of available packages related to zip. If you don't see the package you need, you may need to look for an alternative package or repository. 2. Check if your system is up to date by running the following command: ``` sudo apt-get update ``` This will update your system's package index and refresh the list of available packages. 3. If the package still cannot be found, you may need to add a new repository to your system. This can be done by editing your system's sources.list file and adding the repository URL. For example, to add the official Ubuntu repository, you can run the following command: ``` sudo add-apt-repository main sudo apt-get update ``` This will add the main repository to your system and update the package index. 4. Finally, try installing the package again by running the following command: ``` sudo apt-get install zip ``` This should install the zip package on your system. If you still encounter any issues, you may need to seek further assistance from your system administrator or online forums.
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值