找回密码
 注册帐号

扫一扫,访问微社区

[bug]unity导入资源包之后报错

3
回复
899
查看
[ 复制链接 ]
3偶尔光临
173/300
排名
14229
昨日变化

7

主题

48

帖子

173

积分

Rank: 3Rank: 3Rank: 3

UID
307525
好友
2
蛮牛币
181
威望
0
注册时间
2018-12-8
在线时间
60 小时
最后登录
2019-6-16
2019-1-9 18:54:19 显示全部楼层 阅读模式
50蛮牛币
error CS1704: An assembly with the same name `UnityEngine.Analytics' has already been imported. Consider removing one of the references or sign the assembly
D:/Program Files/Unity/Editor/Data/UnityExtensions/Unity/UnityAnalytics/UnityEngine.Analytics.dll (Location of the symbol related to previous error)
Assets/UnitZ/Editor/UnityEngine.Analytics.dll (Location of the symbol related to previous error)
Compilation failed: 1 error(s), 0 warnings

-------------------------------------------

FileNotFoundException: Could not load file or assembly 'UnityEngine.UnityAnalyticsModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
System.Reflection.MonoMethodInfo.GetMethodInfo (IntPtr handle) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:59)
System.Reflection.MonoMethod.GetPseudoCustomAttributes () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:293)
System.MonoCustomAttrs.GetPseudoCustomAttributes (ICustomAttributeProvider obj, System.Type attributeType) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/MonoCustomAttrs.cs:78)
System.MonoCustomAttrs.IsDefined (ICustomAttributeProvider obj, System.Type attributeType, Boolean inherit) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/MonoCustomAttrs.cs:301)
System.Reflection.MonoMethod.IsDefined (System.Type attributeType, Boolean inherit) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:274)
System.Attribute.IsDefined (System.Reflection.MemberInfo element, System.Type attributeType, Boolean inherit) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Attribute.cs:326)
System.Attribute.IsDefined (System.Reflection.MemberInfo element, System.Type attributeType) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Attribute.cs:299)
UnityEditor.EditorAssemblies.ProcessStaticMethodAttributes (System.Type type) (at C:/buildslave/unity/build/Editor/Mono/EditorAssemblies.cs:101)
UnityEditor.EditorAssemblies.ProcessInitializeOnLoadAttributes () (at C:/buildslave/unity/build/Editor/Mono/EditorAssemblies.cs:164)
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes()


----------------------------------------------

FileNotFoundException: Could not load file or assembly 'UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.


回复

使用道具 举报

5熟悉之中
834/1000
排名
3865
昨日变化

17

主题

153

帖子

834

积分

Rank: 5Rank: 5

UID
213816
好友
8
蛮牛币
921
威望
0
注册时间
2017-3-22
在线时间
268 小时
最后登录
2019-6-17
2019-1-9 18:54:20 显示全部楼层
把这个删掉就可以了.Assets/UnitZ/Editor/UnityEngine.Analytics.dll
回复

使用道具 举报

3偶尔光临
173/300
排名
14229
昨日变化

7

主题

48

帖子

173

积分

Rank: 3Rank: 3Rank: 3

UID
307525
好友
2
蛮牛币
181
威望
0
注册时间
2018-12-8
在线时间
60 小时
最后登录
2019-6-16
楼主 2019-1-9 18:55:27 显示全部楼层
百度了一下说删掉library,重新生成一下, 但是并没有什么卵用啊
回复

使用道具 举报

4四处流浪
413/500
排名
8011
昨日变化

3

主题

133

帖子

413

积分

Rank: 4

UID
292646
好友
1
蛮牛币
472
威望
0
注册时间
2018-8-6
在线时间
123 小时
最后登录
2019-6-12
2019-1-10 08:57:02 显示全部楼层
新建个工程导进去看看
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册帐号

本版积分规则