unity3d 怎么unity签名打包apkk

扫一扫,访问微社区
后使用快捷导航没有帐号?
签到成功!您今天第{todayrank}个签到,签到排名竞争激烈,记得每天都来签到哦!已连续签到:{constant}天,累计签到:{days}天
当前位置: &
_____________________________________________________________________________________________________________
问答求助版块规则:
  1、问题尽量描述清楚
& && &2、代码要放在代码块里
& && &3、附件最好放到云盘,然后把链接放到TXT文档里,上传TXT文档。【最好没有附件,你懂得】
& && &4、本版块回复不得无意义,如:顶、呵呵、不错......以及擦边!【真的会扣分的哦】严重者,封IP!
& && &5、问题得到解决,请选择最佳答案。
& && &6、若问题是你自己解决了,可以联系管理员,返还蛮牛币,写下你的答案,另有蛮牛币奖赏。
_____________________________________________________________________________________________________________
查看: 2927|回复: 33
我 Unity 打包APK 为啥不行???
5951/1000排名<font color="#FF昨日变化3主题帖子积分
熟悉之中, 积分 951, 距离下一级还需 49 积分
熟悉之中, 积分 951, 距离下一级还需 49 积分
蛮牛币1494
在线时间168 小时
我的Eclipes中更新的 是最新的SDK, 但是它提示我是要4.0以上的 ,我明明4.2的都有了 为啥 请问???
unity 5.3 怎么打包;unity如何打包unity 更新unity 如何打包;unity怎么自己打包;unity怎么打包unity 打包unity apk更新
(37.75 KB, 下载次数: 2)
19:32 上传
打包APK为啥会这样??
每日推荐:
71634/5000排名<font color="#FF昨日变化2主题帖子积分
日久生情, 积分 1634, 距离下一级还需 3366 积分
日久生情, 积分 1634, 距离下一级还需 3366 积分
蛮牛币2465
在线时间286 小时
亲爱的大哥 我老本儿 就是做Android 的
更新一下SDK吧~
每日推荐:
12排名<font color="#FF昨日变化4主题帖子积分
蛮牛币2861
在线时间158 小时
好像是没有装这个等级的API
每日推荐:
5951/1000排名<font color="#FF昨日变化3主题帖子积分
熟悉之中, 积分 951, 距离下一级还需 49 积分
熟悉之中, 积分 951, 距离下一级还需 49 积分
蛮牛币1494
在线时间168 小时
好像是没有装这个等级的API
请问 我该咋办啊???
每日推荐:
12排名<font color="#FF昨日变化4主题帖子积分
蛮牛币2861
在线时间158 小时
安装最新的 android SDK
每日推荐:
5951/1000排名<font color="#FF昨日变化3主题帖子积分
熟悉之中, 积分 951, 距离下一级还需 49 积分
熟悉之中, 积分 951, 距离下一级还需 49 积分
蛮牛币1494
在线时间168 小时
安装最新的 android SDK
你看嘛 大哥 能更新的 我都更新了
(171.15 KB, 下载次数: 2)
11:23 上传
每日推荐:
12排名<font color="#FF昨日变化4主题帖子积分
蛮牛币2861
在线时间158 小时
那你有在Unity里面指定 SDK的目录么
每日推荐:
5951/1000排名<font color="#FF昨日变化3主题帖子积分
熟悉之中, 积分 951, 距离下一级还需 49 积分
熟悉之中, 积分 951, 距离下一级还需 49 积分
蛮牛币1494
在线时间168 小时
那你有在Unity里面指定 SDK的目录么
有 指定了的,如果 不指定 Unity 也要 要我指定后 才能继续编译APK
每日推荐:
12排名<font color="#FF昨日变化1主题帖子积分
蛮牛币5186
在线时间338 小时
缺少安卓sdk,必须导出时指定andriodSDK文件夹。
每日推荐:
5951/1000排名<font color="#FF昨日变化3主题帖子积分
熟悉之中, 积分 951, 距离下一级还需 49 积分
熟悉之中, 积分 951, 距离下一级还需 49 积分
蛮牛币1494
在线时间168 小时
缺少安卓sdk,必须导出时指定andriodSDK文件夹。
要不 大哥 方便加个Q不&&麻烦您给我远程下 我整了好几天 都没有整好, 都是按照 网上说的 那么整, 结果 就是不对&&我都要哭了···
每日推荐:
4326/500排名<font color="#FF昨日变化2主题帖子积分
四处流浪, 积分 326, 距离下一级还需 174 积分
四处流浪, 积分 326, 距离下一级还需 174 积分
在线时间48 小时
在Edit&Preferences&
QQ图片31.jpg (37.99 KB, 下载次数: 0)
14:34 上传
每日推荐:
5951/1000排名<font color="#FF昨日变化3主题帖子积分
熟悉之中, 积分 951, 距离下一级还需 49 积分
熟悉之中, 积分 951, 距离下一级还需 49 积分
蛮牛币1494
在线时间168 小时
在Edit&Preferences&
我指定了 路径&&的····
每日推荐:
4326/500排名<font color="#FF昨日变化2主题帖子积分
四处流浪, 积分 326, 距离下一级还需 174 积分
四处流浪, 积分 326, 距离下一级还需 174 积分
在线时间48 小时
我指定了 路径&&的····
我的可以。。具体什么错误。。看Log
每日推荐:
5951/1000排名<font color="#FF昨日变化3主题帖子积分
熟悉之中, 积分 951, 距离下一级还需 49 积分
熟悉之中, 积分 951, 距离下一级还需 49 积分
蛮牛币1494
在线时间168 小时
我的可以。。具体什么错误。。看Log
方便加个Q不嘛 大哥 远程下···
每日推荐:
7排名<font color="#FF昨日变化1主题帖子积分
蛮牛币2932
在线时间270 小时
在下载 android SDK之前电脑里要装一个叫Java什么什么的东西,可能是Java开发包吧
每日推荐:
社区QQ达人
使用QQ帐号登录论坛的用户
游戏蛮牛QQ群会员
加入游戏蛮牛官方QQ群
连续签到30天
购买游戏蛮牛书籍
在“新人报到 ”版块发过自己的照片因安卓SDK更新导致Unity3D打包APK文件失败_打小就不乖_新浪博客
因安卓SDK更新导致Unity3D打包APK文件失败
unity版本为5.3.4f1,具体失败的unity3D结果提示:&#8203;&#8203;
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()&#8203;
第二个:&#8203;
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_
解决方法如下:&#8203;&#8203;
因为更新的Android
SDK Build-tools& 24&
导致unity打包失败&#65279;
找到SDK目录文件,E:\adt-bundle-windows-x86_64-\sdk\build-tools&
在该文件下有一个24.0.0的文件夹删除就可以了。&#8203;
打小就不乖
博客等级:
博客积分:0
博客访问:875
关注人气:0
荣誉徽章:下次自动登录
现在的位置:
& 综合 & 正文
unity3d大型手游
可以打包obb文件
用unity3d开发手游,有个很大的问题就是apk的size太大, 如果超过50M,一般很多平台就不会肯上线。
一个好的方法是把app打成apk + obb数据包的方式。
1. 编译成obb数据包的方式 unity3d 4.x上有很简单的手法, 选一个checkbox即可
2. obb文件的下载 可以在unity3d中做, 如果用到android project做壳子, 也可以在android中做, 在launchActivity中判断一下数据包是否存在,然后
启动一个后台线程下载obb文件,通过handler和activity通信,刷进度条。
3. obb文件要存成 /mnt/sdcard/Android/obb/packagename/main.versioncode.packagename.obb
4. 下载成功之后重启一下app, unity3d 4.0以后就会自动读取这个obb文件, 游戏就可以正常玩耍了。
writen by tony_蒋
&&&&推荐文章:
【上篇】【下篇】unity打包apk不能切换场景
IEnumerator UpdateAllBundle()
//if(!updating)
string xml_version = &&;
if (version.Length == 0)
string svnVersion
AppVersion()[&versionName&].Split(&#039;.&#039;)[3];
if (Application.platform == RuntimePlatform.Android)
version = &0/&;
else if (Application.platform == RuntimePlatform.IPhonePlayer)
version = &10/&;
else if (Application.platform == RuntimePlatform.WP8Player)
version = &20/&;
else if(Application.platform == RuntimePlatform.WindowsEditor)
#if UNITY_ANDROID
version = &0/&;
#if UNITY_IPHONE
version = &10/&;
version += svnVersion + &/&;
xml_version = svnV
cdnIndex = 0;
System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
string url = GetServer() + &bundleinfo.xml& + xml_
byte[] xmlData =
if (InternalNetDebug)
xmlData = File.ReadAllBytes(url);
string bundleInfo = &&;
while (true)
long[] velocity = new long[cdn.Length];
for (int i = 0; i & cdn.L i++)
url = GetServer() + &bundleinfo.xml& + xml_
Debug.Log(url);
System.Diagnostics.Stopwatch watch = new System.Diagnostics.Stopwatch();
watch.Start();
wwwPercent = new WWW(url);
yield return wwwP
if (wwwPercent.error != null)
velocity[i] = -1;
Debug.Log(wwwPercent.error);
bundleInfo = wwwPercent.
watch.Stop();
velocity[i] = watch.ElapsedT
ChangeCDN();
bool bValid =
long last = long.MaxV
for (int i = 0; i & cdn.L i++)
if (velocity[i] != -1 && velocity[i] & last)
last = velocity[i];
cdnIndex =
if (!bValid)
sdUICharacter.Instance.ShowLoginMsg(&Can&#039;t Get Resource Version Information,Retry in 5 Second Later&);
yield return new WaitForSeconds(5.0f);
sdUICharacter.Instance.HideLoginMsg();
Debug.Log(&parse server bundleinfo.xml &);
xmlData = wwwPercent.
wwwPercent =
byte[] buffer = new byte[1024 * 1024];
MemoryStream dst = new MemoryStream(buffer, true);
MemoryStream src = new MemoryStream(xmlData);
SD.Decompress(src, dst);
string csvContent = Encoding.ASCII.GetString(buffer, 0, (int)dst.Position);
//Debug.Log(csvContent);
string[] lines = csvContent.Split(&#039;\n&#039;);
ParseBundleCSV(lines, ref bundles, bundleTable);
Debug.Log(&load local bundleinfo.xml&);
//加载本地xml..
//System.Xml.XmlDocument docLocal =new System.Xml.XmlDocument();
Hashtable downloadBundle
new Hashtable();
if(File.Exists(LocalPath+&bundleinfo.txt&))
//docLocal.Load(local+&bundleinfo.xml&);
StreamReader r = File.OpenText(LocalPath + &bundleinfo.txt&);
while(!r.EndOfStream)
string line =
r.ReadLine();
if(line.Length&0)
string[] strElement =
line.Split(&#039;,&#039;);
downloadBundle[strElement[0]] = uint.Parse(strElement[1]);
//localContent
= docLocal.SelectSingleNode(&Bundles&);
r.Close();
}catch(System.Exception e)
Debug.Log(e.Message+&load xml failed!&);
BundleGlobalItem[] updateBundles =
strVersionFile
if(downloadBundle.Count&0)
Debug.Log(&delete unused bundle&);
//删除上个版本中(不在这个版本中)的文件..
//BundleItem[] oldBundle
//Hashtable oldTable
new Hashtable();
//ParseXmlBundle(root1,ref oldBundle,oldTable);
Debug.Log(&Last Bundle Count = &+downloadBundle.Count);
//Debug.Log(&Current Bundle Count = & + BundleIndex.Count);
foreach(DictionaryEntry de in downloadBundle)
(uint)de.V
//Debug.Log(&Compare Bundle Index [&+item.bundlePath+&]&);
if(!bundleTable.ContainsKey(name))
string strLocalPath =
FixedPath(name);
Debug.Log(&delete bundle &+name + ver);
File.Delete(strLocalPath);
if(File.Exists(strLocalPath))
Debug.Log(&delete bundle Failed! &+strLocalPath);
//Debug.Log(&bundle is exist! &+item.bundlePath + item.version);
Debug.Log(&find bundle need for update&);
List&BundleGlobalItem& lstDownload
new List&BundleGlobalItem&();
//判断是否需要更新文件..
for(int i=0;i&bundles.Li++)
BundleGlobalItem item = bundles[i];
if (item == null)
if(!downloadBundle.ContainsKey(item.itemInfo.bundlePath))
lstDownload.Add(item);
(uint)downloadBundle[item.itemInfo.bundlePath];
if(ver != item.itemInfo.version)
lstDownload.Add(item);
if(!File.Exists(FixedPath(item.itemInfo.bundlePath)))
lstDownload.Add(item);
strVersionFile
item.itemInfo.bundlePath+&,&+item.itemInfo.version+&,\r\n&;
SaveVersion(strVersionFile);
Debug.Log(&update some bundle = &+lstDownload.Count);
updateBundles
lstDownload.ToArray();
Debug.Log(&update all bundle&+bundles.Length);
updateBundles =
if(updateBundles!=null)
Thread UnCompressThread = new Thread(new ThreadStart(UnCompressMain));
UnCompressThread.Start();
for(int i=0;i&updateBundles.L)
OnDownload(i,updateBundles.Length);
BundleGlobalItem item = updateBundles[i];
Debug.Log(&download bundle &+item.itemInfo.bundlePath);
//guiText.text
i+&/&+BundleInfoArray.L
//Download(BundleInfoArray[i]);
string bundleurl
GetServer() + item.itemInfo.bundlePath.Replace(&$&,&__&)+item.itemInfo.version.ToString();
byte[] bundleData =
if (InternalNetDebug)
yield return 0;
if (!File.Exists(bundleurl))
Debug.Log(&Bundle Don&#039;t Exist! & + bundleurl);
bundleData = File.ReadAllBytes(bundleurl);
wwwPercent = new WWW(bundleurl);
yield return wwwP
if (wwwPercent.error != null)
Debug.Log(wwwPercent.error);
if (wwwPercent.error.Contains(&FileNotFoundException&) ||
wwwPercent.error.Contains(&404: not found&) ||
wwwPercent.error.Contains(&404 Not Found&))
sdUICharacter.Instance.HideLoginMsg();
sdUICharacter.Instance.ShowLoginMsg(wwwPercent.error);
ChangeCDN();
wwwPercent =
//校验压缩之后的CRC是否匹配 不匹配则更换CDN 重新下载..
BundleItem iteminfo = item.itemI
byte[] data = wwwPercent.
uint comp_crc = SevenZip.CRC.CalculateDigest(data, 0, (uint)data.Length);
if (comp_crc != press_crc)
Debug.Log(iteminfo.bundlePath + & compress_crc doesn&#039;t match & + comp_crc + & & + press_crc);
sdUICharacter.Instance.ShowLoginMsg(&crc doesn&#039;t match,download again!&);
ChangeCDN();
sdUICharacter.Instance.HideLoginMsg();
bundleData = wwwPercent.
SaveFileAsync(bundleData, item);
wwwPercent=
ExitUnCompress =
while(true)
if(ExitUnCompress)
yield return 0;
Debug.Log(&update finished!&);
OnDownloadFinished();
StartCoroutine (updateLoad ());
}在编译器下可以正常运行, 能打开新界面和切换场景, 但在安卓却打不开第二个界面, 找不到界面资源, 怎么回事代码如下:
要评论请先&或者&
你只能实机,用最简单的场景排查。&&国之画&&&& &&
版权所有 京ICP备号-2
迷上了代码!}

我要回帖

更多关于 unity 5.3打包apk闪退 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信