欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  移动技术

unity5.3.6f打包安卓apk

程序员文章站 2022-06-23 16:39:44
目录一、配置SDK和NDK二、build报错解决三、打包完成一、配置SDK和NDK用之前Android Studio的二、build报错Error:Invalid command androidCommandInvokationFailure: Unable to list target platforms. Please make sure the android sdk path is correct. See the Console for more details.D:/2...

一、配置SDK和JDK

用之前Android Studio 4.1.1的
unity5.3.6f打包安卓apk

二、build

unity5.3.6f打包安卓apk
unity5.3.6f打包安卓apk
unity5.3.6f打包安卓apk

unity5.3.6f打包安卓apk

报错1

unity5.3.6f打包安卓apk
Error:Invalid command android

CommandInvokationFailure: Unable to list target platforms. Please make sure the android sdk path is correct. See the Console for more details.
D:/20201127/android-studio4.1/jre\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir=“D:/20201127/android-peizhi/android-sdk\tools” -Dfile.encoding=UTF8 -jar “E:\Unity5.3.6\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar” -

Error building Player: CommandInvokationFailure: Unable to list target platforms. Please make sure the android sdk path is correct. See the Console for more details.
D:/20201127/android-studio4.1/jre\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir=“D:/20201127/android-peizhi/android-sdk\tools” -Dfile.encoding=UTF8 -jar “E:\Unity5.3.6\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar” -

解决2

unity5.3.6f打包安卓apk
用之前下载的一个旧的低版本sdk和jdk
unity5.3.6f打包安卓apk

unity5.3.6f打包安卓apk
unity5.3.6f打包安卓apk
unity5.3.6f打包安卓apk

unity5.3.6f打包安卓apk
unity5.3.6f打包安卓apk
unity5.3.6f打包安卓apk

问题2

没有打包出apk,操作步骤不对

解决2

unity5.3.6f打包安卓apk
unity5.3.6f打包安卓apk
unity5.3.6f打包安卓apk

unity5.3.6f打包安卓apk
unity5.3.6f打包安卓apk
unity5.3.6f打包安卓apk
unity5.3.6f打包安卓apk
还下载了一个ndk
unity5.3.6f打包安卓apk
unity5.3.6f打包安卓apk
unity5.3.6f打包安卓apk
后面jre报错了
我把jre换成Android Studio 4.1.1自带的jre
unity5.3.6f打包安卓apk
忘记全选了
unity5.3.6f打包安卓apk
unity5.3.6f打包安卓apk

三、打包完成

代码没有3D模型,不玩它了,自己找其他游戏源码玩
unity5.3.6f打包安卓apk

unity5.3.6f打包安卓apk

unity5.3.6f打包安卓apk
unity5.3.6f打包安卓apk

四、扩展

后续也把IOS、PC、Web都打了一遍
unity5.3.6f打包安卓apk
unity5.3.6f打包安卓apk
unity5.3.6f打包安卓apk

五、总结

感觉我是摸着石头过河,尝试着来的,乱闯的感觉,遇见bug再修,最后搞定。对于陌生知识,自己没有搞过的,不妨尝试弄一下,弄弄就好了。一个字,心态要稳,遇见bug不要慌

本文地址:https://blog.csdn.net/xiaoduangg/article/details/110673826

相关标签: u3d