[英]Error importing GoogleMobileAds into Unity
我导入了GoogleMobileAds,它报告了2个错误,这使我的项目无法运行。 2个错误是:-资产/ GoogleMobileAds /编辑器/ManifestProcessor.cs(9,19):错误CS0234:类型或名称空间名称Build 'does not exist in the namespace `UnityEditor'. Are you missing an assembly reference? - Assets / GoogleMobileAds / Editor / ManifestProcessor.cs (20,34): error CS0246: The type or namespace name
Build 'does not exist in the namespace `UnityEditor'. Are you missing an assembly reference? - Assets / GoogleMobileAds / Editor / ManifestProcessor.cs (20,34): error CS0246: The type or namespace name
Build 'does not exist in the namespace `UnityEditor'. Are you missing an assembly reference? - Assets / GoogleMobileAds / Editor / ManifestProcessor.cs (20,34): error CS0246: The type or namespace name
IPreprocessBuild'。 您是否缺少装配参考? 我尝试安装其他一些统一版本(因为我使用旧版本编写了该项目),但仍然无法解决。
using System.IO;
using System.Linq;
using System.Xml.Linq;
using UnityEditor;
using UnityEditor.Build; -->Error
#if UNITY_2018_1_OR_NEWER
using UnityEditor.Build.Reporting;
#endif
using UnityEngine;
using GoogleMobileAds.Editor;
#if UNITY_2018_1_OR_NEWER
public class ManifestProcessor : IPreprocessBuildWithReport
#else
public class ManifestProcessor : IPreprocessBuild -->Error
#endif
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.