问答详情
源自:4-1 配置Unity的Android编译环境

显示错误?

Unable to list target platforms. Please make sure the android sdk path is correct. See the Console for more details.  See the Console for details.

NullReferenceException: Object reference not set to an instance of an object

UnityEngine.GUILayoutUtility.BeginLayoutGroup (UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options, System.Type layoutType) (at /Users/builduser/buildslave/unity/build/Runtime/IMGUI/Managed/GUILayoutUtility.cs:296)

UnityEditor.EditorGUILayout.BeginHorizontal (UnityEngine.GUIContent content, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorGUI.cs:7234)

UnityEditor.EditorGUILayout.BeginHorizontal (UnityEngine.GUILayoutOption[] options) 


提问者:JN_X 2017-08-19 11:09

个回答

  • Oscar
    2017-08-21 16:29:39
    已采纳

    你配置好 Android 的 NDK 后,在 Unity 的设置 (Preferences) 里选择这个 NDK 的路径。如下图中 External Tools -> Android -> NDK 那个 :

    http://img.mukewang.com/599a99ea00018dbb05000422.jpg


  • 蓝克
    2017-09-10 22:56:41

    所以 就是  jdk  sdk  ndk  下好这三个就好了么

    jre eclipse 什么的不用下是吗


  • 蓝克
    2017-09-10 22:55:17

    老师的视频里没有ndk呀  是还要在下个ndk吗?

  • JN_X
    2017-08-19 11:12:25

    ndk怎么弄的。