Unity-APk 错误:Error building Player: Couldn't build player because of unsupported data on target plat
来源:互联网 发布:认识数据库管理 编辑:程序博客网 时间:2024/05/29 04:00
Unity-APk 错误:An asset is marked dont save UnityEditor.HostView:OnGUI() unsuppor
unity导出相关的错误好多哦,越来越发现unity里有太多值得学习的地方了,不愧人们都说:unity入门容易,精通难啊!
来到公司做的第一个项目可不能给我捣蛋啊,可是就在昨天,好不容易把NGUi的屏幕自适应给搞出来了,想和我彪哥的项目组合下,没成想,导出apk报错,看到没,就这个错误!!
错误1:
An asset is marked as dont save, but is included in the build:
unityEditor.HostView:OnGUI()
错误2:
Building - Failed to write file: sharedassets0.assets
UnityEditor.HostView:OnGUI()
错误3:
Error building Player: Couldn't build player because of unsupported data on target platform.
一般情况下,发布android经常会遇到这些蛋疼的问题我遇到的时候是:关闭所有相关窗口,然后打开vs重新,重启Unity后在发布,实在不行重启一下(untiy和电脑都试试)...。还是不行的话。我自己还有一个必杀技:
打开google,复制错误 进行搜索!你会找到百度里找不到的好多链接,不得不承认外国人的技术啊,就是提前,尽情的改去吧!
对于这个问题,我找了好多文档论坛,咋说的都有:
1.动态字体不合适或者不支持
http://answers.unity3d.com/questions/389650/build-problem-asset-is-marked-as-dont-save.html
2.第三方插件里面有物体丢失脚本,或者预制里面有不合适的东西(有人说mesh什么的!)
http://answers.unity3d.com/questions/389650/build-problem-asset-is-marked-as-dont-save.html
3.自己挨个场景测试(本次就用这个方法,忒笨了)
(1).unity中
一个一个的试过来,终于在GameAuto不存在的时候,竟然能导出apk,并且没有问题,so happy,
(2)打开GameAuto看看它里面到底有什么东西lead to error,
侬,就这俩,我突然就想起,是不是第三方插件搞得鬼,当时是在嘴里骂着NGUI的状态下找了,首先第一就把NGUI给删了,还别说,真ok了,
(3)更加肯定了我的猜测,我非得探个究竟,到底是谁呢,继续找。。
原来就是这个家伙啊。。
本来这个button是一个图片button,so lbl是没用的,我当时就禁用了,啥也没管,后来,它和把我害惨了,
如图,其属性面板中竟然定义了Font:Dynamic 还有一个什么 lucida grande bia(我的资源里压根就没有这个字体,how come!)
,于是,将其改成font :bitmap ,save scene,然后build 还是same error.
我就开着这个label的inspector,当我调试的时候,竟然发现他自己变成dynamic Font,后来果断给删了(你若离去,我就当你没来过!)
这下就ok了呗,这事弄的一上午!!!不过也蛮有成就感滴,再此记录下,加油哦!!。
这里补充下自己的发现,除了上述的问题外,label的字体可能是属于苹果系统下的字体,也是有可能的,我的问题就是这样.因为我在开发的时候是在PC&MAC下开发的,打包apk需要弄成andriod的。所以字体不一样.如果要用MAC下的字体就得把字体的TTF也拷进对应的资源文件.
反正这个问题好坑爹,幸亏遇到了个好的老大
- Unity-APk 错误:Error building Player: Couldn't build player because of unsupported data on target plat
- 编译时,遇到Couldn't build player because of unsupported data on target platform的解决方案
- error: couldn't parse contents of '/Users/.../Info.plist': The data couldn’t be read because...
- error: couldn't parse contents of '/Users/.../Info.plist': The data couldn’t be read because...
- Unity-APk 错误:An asset is marked dont save UnityEditor.HostView:OnGUI() unsupported data on target p
- unity导出apk时Error building Player: CommandInvokationFailure: Unable to convert classes into dex forma
- linux系统引导时出现error:couldn't mount because of unsupported optional features(240)的解决方案
- linux系统引导时出现error:couldn't mount because of unsupported optional features(240)的解决方案
- Error building Player: UnityException: SDK Build Tools version 19 < 23
- Error building Player: UnityException: Unable to install APK!
- Error building Player: Exception: Error
- Unity出现 error building player exception android (invocation failed)
- unity编译apk出Error building Player: UnityException: Can not sign application Unable to sign applicat问题
- iOS国际化编译错误:error: read failed: The data couldn’t be read because it isn’t in the correct format.
- Localizable.strings:0: error: read failed: The data couldn’t be read because it isn’t in the correct
- info.plist utility error:The data couldn’t be read because it isn’t in the correct format
- /Localizable.strings:0: error: read failed: The data couldn’t be read because it isn’t in the correc
- couldn't parse contents of 'xxx/Info.plist': The data couldn’t be read because it isn’t in the cor
- IT人生
- 《剑指offer》——构建乘积数组
- java提取字符串中的汉字
- Effective C++ 笔记 第二部分 构造/析构/赋值运算
- leetcode-Permutations
- Unity-APk 错误:Error building Player: Couldn't build player because of unsupported data on target plat
- android中handle的用法
- char数组与char指针的区别与联系
- iOS获取汉字首字母
- 做一个有价值的软件开发者
- python IDE:PyCharm简介
- iOS获取汉字首字母
- Spark 入门之四:Spark任务调度架构
- 项目优化方案