android - 在 Unity3D 中构建 Android APK 时出错

标签 android unity-game-engine apk

可能不是错误,也许只是我有点慢,但是一旦我点击构建,在通常的菜单上,如下图所示... enter image description here

Unity 要求我在计算机中选择“某物”,这很奇怪,它不允许我选择文件、程序或任何东西。这真的很奇怪,因为我无法选择任何东西。关闭窗口后,它会提示我找不到 Android SDK,这也很奇怪,因为我是从 android 的网站下载并正确安装的。会是什么呢?

最佳答案

如果你安装了 Android Studio 会更容易设置。

在 Android Studio 上,按照以下步骤操作:

工具 > Android > SDK 管理器

enter image description here

现在在新窗口复制这个SDK的地址(Android SDK位置)

enter image description here

在 unity 去:

编辑 > 首选项

enter image description here

在新窗口(Unity 首选项)转到选项卡 External Tools

在SDK位置粘贴SDK位置的andress

enter image description here

如果你没有Studio但是安装了SDK,你应该看看这个安装的位置,找到SDK文件夹,复制这个地址并把它放在Unity首选项>外部工具>SDK中。

关于android - 在 Unity3D 中构建 Android APK 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37443171/

相关文章:

android - 获得错误的显示尺寸。如何转换为原始尺寸?

android - 设置 Android 背景和持久性菜单栏 - 在旧版本上使用属性会导致崩溃 - 是否有主题/模式方法?

unity-game-engine - 让汽车爬上斜坡

android - 生成的 APK 的 SHA1 指纹与 Keystore 的指纹不匹配

java - 如何保护 APK 中包含的信息?

java - '列表<T >' may not contain type objects of type ' 对象'

android - 使用 Kivy 访问 Android 相机时出现错误

android - Google Play 服务和 Unity3D 错误

来自 Windows 的 IOS 开发人员

android - 使用 Perl 访问 Android 应用程序