unity5.0 unity打包apk闪退出来的apk 为什么闪退

主题 : unity程序打包成IOS出现闪退
级别: 新手上路
可可豆: 209 CB
威望: 212 点
在线时间: 198(时)
发自: Web Page
unity程序打包成IOS出现闪退 &&&
You are using Unity iPhone Basic. You are not allowed to remove the Unity splash screen from your game,求大神指点&
15:15:57.616 PainMapper[4046:60b] -& registered mono modules 0x1488cd0&
-& applicationDidFinishLaunching()&
Mono path[0] = '/var/mobile/Applications/F7-4E24-AF4B-2FF/PainMapper.app/Data/Managed'&
Mono config path = '/var/mobile/Applications/F7-4E24-AF4B-2FF/PainMapper.app/Data/Managed'&
You are using Unity iPhone Basic. You are not allowed to remove the Unity splash screen from your game
级别: 新手上路
可可豆: 13 CB
威望: 10 点
在线时间: 53(时)
发自: Web Page
买专业版的就可以解决这个问题……一万块钱……
或者保留Unity3D的启动屏幕吧。
关注本帖(如果有新回复会站内信通知您)
9*6-8 正确答案:46
发帖、回帖都会得到可观的积分奖励。
按"Ctrl+Enter"直接提交
关注CocoaChina
关注微信 每日推荐
扫一扫 浏览移动版因安卓SDK更新导致Unity3D打包APK文件失败_打小就不乖_新浪博客
因安卓SDK更新导致Unity3D打包APK文件失败
unity版本为5.3.4f1,具体失败的unity3D结果提示:​​
CommandInvokationFailure: Failed to re-package resources. See
the Console for details.
E:\adt-bundle-windows-x86_64-\sdk\build-tools\24.0.0\aapt.exe
package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml
-S "res" -I
"E:/adt-bundle-windows-x86_64-/sdk\platforms\android-24\android.jar"
-F bin/resources.ap_
(System.Diagnostics.ProcessStartInfo psi,
UnityEditor.Android.WaitingForProcessToExit
waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.PostProcessAndroidPlayer.Exec (System.String
command, System.String args, System.String workingdir,
System.String[] progress_strings, Single progress_value,
System.String errorMsg)
UnityEditor.pileResources
(System.String stagingArea, System.String packageName,
UnityEditor.Android.AndroidLibraries androidLibraries)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcessInternal
(System.String stagingAreaData, System.String stagingArea,
System.String playerPackage, System.String installPath,
System.String companyName, System.String productName, BuildOptions
options, UnityEditor.RuntimeClassRegistry usedClassRegistry)
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.HostView:OnGUI()​
第二个:​
Error building Player: CommandInvokationFailure: Failed to
re-package resources. See the Console for details.
E:\adt-bundle-windows-x86_64-\sdk\build-tools\24.0.0\aapt.exe
package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml
-S "res" -I
"E:/adt-bundle-windows-x86_64-/sdk\platforms\android-24\android.jar"
-F bin/resources.ap_
解决方法如下:​​
因为更新的Android
SDK Build-tools& 24&
导致unity打包失败
找到SDK目录文件,E:\adt-bundle-windows-x86_64-\sdk\build-tools&
在该文件下有一个24.0.0的文件夹删除就可以了。​
打小就不乖
博客等级:
博客积分:0
博客访问:242
关注人气:0
荣誉徽章:4970人阅读
Unity3d学习(15)
在使用新的Unity3d 5.0后,我们发现在Inspector面板上多了一个东西
这里主要有两个可以设置的选项AssetBundle和Variant
进过测试,发现5.01版本在AssetBundle方面存在bug,幸好在5.02版本进行了修复,所以在5.02以后的版本才可以放心使用,不然会出现贴图丢失等问题
&AssetBundle& 在这里指的是我们打包后会生成的包名,可以有后缀,比如ui.assetbundle,ui.uity3d等等,但是我们要注意的是,使用的时候名称要对应起来.
点击菜单里面的New... &我们可以创建出一个新的assetbundle.我们也可以把好几个Prefabs设置 在一个AssetBundle里面,方法很简单,就是选中你要设置的文件,然后
在菜单里面统一设置为你想的名字.比如我的项目里面有好几个元素是打算打包在ui这个包里的,就可以这样设置.
通常随着项目里设置的AssetBundle越来越来,管理起来会比较不方便,比如我想知道ui这个包里面有什么文件的时候,可以点击AssetBundle中的选项,
当然是在当前选项是ui的情况下,点击下面的Filter Selecte Name&,系统就会进行过滤,还有一个最直接的方法,就是在搜索栏里直接输入:
在以往的版本,我们都是使用WWW,这个东西来加载我们打包的资源,接口也是比较简单
public static WWW LoadFromCacheOrDownload(string url, int version);
public static WWW LoadFromCacheOrDownload(string url, int version, [DefaultValue(&0&)] uint crc);但是在新的5.0版本里,多了两个新的接口
public static WWW LoadFromCacheOrDownload(string url, Hash128 hash);
public static WWW LoadFromCacheOrDownload(string url, Hash128 hash, [DefaultValue(&0&)] uint crc);唯一不同的地方就在于Hash128这个东西.关于这个东西官方的api文档中还找不到,经过测试,它的大致用意是用来区分同一个
资源名称,不同版本用的.在新的版本中存在一个叫做AssetBundleManifest,的类,里面封装了如下接口
据官方的介绍,这个类主要是在我们定义的每个AssetBundle的时候会产生一个Manifest文件,它的作用如下:
1.作为CRC校验用
2.Asset文件Hash,将所有的asset资源包含在这个AssetBundle中,但是仅仅用于编译的增量计数检查。
3.资源名称,所有同样名称的AssetBundle都会打进一个包中.通过Mainfest都可以取到这些资源
4.依赖资源的名称.
在这里我觉比较重要的一个东西就是AssetBundle Variant
这个东西主要应用在不同分辨率资源的使用或者多语言图片资源的使用上比较多
例如:当你在不同的分辨率下使用两套不容的资源,在这里我们暂且定义为&texture.hd&和&texture.sd&
我们可以这样做:新建立两个文件夹,叫做&MyAssets HD&和&MyAssets HD&,把他们的AssetBundle统一设置
为&variants/texture&,Variant分为设置为&hd&和&sd&,最终如下:
这样我们就可以通过
public static WWW LoadFromCacheOrDownload(string url, Hash128 hash);的方式来使用我们两种分辨率下的资源了
这里比较关心的是url和hash这两个参数
url,估计大家都知道是&variants/texture&,
然而hash就是需要借助AssetBundleManifest.GetAssetBundleHash的方法来获取了.
今天时间比较匆忙,暂时说到这里,希望可以给大家抛砖引玉.详细的实现方案请看第二讲
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:319941次
积分:3542
积分:3542
排名:第6564名
原创:27篇
转载:95篇
评论:170条
(2)(2)(1)(1)(1)(1)(1)(1)(1)(1)(2)(1)(1)(1)(1)(2)(1)(8)(74)(1)(5)(5)(1)(3)(1)(1)(3)

我要回帖

更多关于 unity3d 打包闪退 的文章

 

随机推荐