

Unity – JDK/SDK/NDK path issue
source link: https://naclyen.com/2020/03/06/unity-jdk-sdk-ndk-path-issue/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Unity 2019.2.4f1
Windows 10 (1909)
A JDK path needs to be specified for the Android build. Go to
Preferences > External Tools > JDK
to set it.
發生原因不明, 明明就存在 Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK
, 但 Unity 自己又找不著…
- 在
Preferences > External tools
指定 OpenJDK 的路徑.
e.g. unity 安裝在C:\unity\2019.2.4f1
, 指定的路徑就是C:\unity\2019.2.4f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK
詭異的修正法
- uncheck(這時路徑輸入框會出現, 但內容為空)
- browse(這時路徑會自動填上, 和上面手動指定的一樣)
- check(這時輸入框隱藏)
推測這樣就可以正確的設定預設值
, 就可以在 building 中正常運作.
其中 NDK
也很常發生這種狀況, 所以建議 JDK/SDK/NDK
都全部走一次流程為佳XDD
tags:
unity
android
NDK
JDK
SDK
Recommend
-
17
NDK在mac上的安装 – ruquan.z – github技术博客,成长在于积累。 ruquan.z github技术博客,成长在于积累。
-
9
cmake and the Android NDK Apr 20, 2014 • Andre Weissflog TL;DR: how to build Android NDK applications with cmake instead of the custom NDK build system, this is useful for projects which already use cmake to cr...
-
10
Android中关于Nativa编译(NDK、JNI)的一些问题 | 子勰的博客 [本文结构] 做SDK也有一段时间了,SDK底层是用java写的,早期也只提供java层的接口。后来游戏接入越来越多,而且大...
-
4
Android NDK是什么,为什么我们要用NDK? Android NDK 是在SDK前面又加上了“原生”二字,即Native Development Kit,因此又被Google称为“NDK”。众所周知,Android程序运行在Dalvik虚拟机中,NDK允许用户使用类似C / C++之类的原生代码语言执行部分程序...
-
14
如何定位Android NDK开发中遇到的错误 Android NDK是什么,为什么我们要用NDK? Android NDK 是在SDK前面又加上了“原生”二字,即Native Development Kit,因此又被Google称为“NDK”。众所周知,Android程序运行在Dalvik虚拟机中,NDK允许用...
-
4
Unity 2019.2.4f1Windows 10 (1909) A JDK path needs to be specified for the Android build. Go to Preferences > External Tools > JDK to set it....
-
9
在Android开发中,使用 NDK开发的需求正逐渐增大 但很多人却搞不懂 JNI 与 NDK 到底是怎么回事 今天,我将先介绍JNI 与 NDK & 之间的区别,手把手...
-
5
AndroidStudio2.0搭建Ndk环境&成功编译使用 – Android开发中文站你的位置:Android开发中文站 > Android开发 >
-
9
Updating the Android NDK in Rust 1.68 Jan. 9, 2023 · Android Platform Team We are pleased to announce that Android platform support in Rust will be modernized...
-
10
在Android开发中,有时候出于安全,性能,代码共用的考虑,需要使用C/C++编写的库。虽然在现代化工具链的支持下,这个工作的难度已经大大降低,但是毕竟万事开头难,初学者往往还是会遇到很多不可预测的问题。本篇就是基于此背景下写的一份简陋指南,希望能对刚开始编...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK