牛骨文教育服务平台(让学习变的简单)
博文笔记

Unity3D发布安卓时遇到的问题解决办法

创建时间:2014-08-04 投稿人: 浏览次数:11815

在用Unity3D发布安卓时遇到了两个问题,在此记录下解决办法:

第一个:

错误提示:

Error building Player: UnityException: Bundle Identifier has not been set up correctly
Please set the Bundle Identifier in the Player Settings. The value must follow the convention "com.YourCompanyName.YourProductName" and can contain alphanumeric characters and underscore.
Each segment must not start with a numeric character or underscore.

解决方法:

打开File=>build settings => player settings=>在Inspector找到Bundle Identifier 选项,原来是:com.YourCompanyName.YourProductName

后两项改个名字就行了


第二个:

错误提示:

Error building Player: Win32Exception: ApplicationName="D:/android/android-sdk-windows-1.6_r1 oolszipalign.exe", CommandLine="4 "C:UsersAdministrator.OTCITZ1YGXVV59ZDocumentsNew Unity Project 1Temp/StagingArea/Package_unaligned.apk" "C:UsersAdministrator.OTCITZ1YGXVV59ZDocumentsNew Unity Project 1Temp/StagingArea/Package.apk"", CurrentDirectory="Temp/StagingArea"

解决方法:

你会发现D:/android/android-sdk-windows-1.6_r1 ools目录下面并没有zipalign.exe这个可执行文件,所以在D:androidandroid-sdk-windows-1.6_r1uild-tools20.0.0里找到这个文件,将其拷贝到之前的目录,就解决啦。



声明:该文观点仅代表作者本人,牛骨文系教育信息发布平台,牛骨文仅提供信息存储空间服务。