无法列出目标平台

无法列出目标平台

本文介绍了无法列出目标平台.请确保android sdk路径正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试构建旧的统一版本 (v_4.6.3) 项目.但我有一个错误.我已经得到了成功的结果,但目前我的 sdk 已更新为最新版本.

7.再次构建 Android 项目,它会显示一个错误并要求您更新 SDK.

点击更新 Android SDK"按钮.Unity 将自动更新您的 SDK.您的 SDK 应如下所示.你的问题现在应该已经解决了.

I am trying to build old unity version(v_4.6.3) project. but i have got a error. already i have got successful result, but current my sdk is updated with latest version.

http://screencast.com/t/u7lNiyoc

Here is my unity error log.

How can i fix this issues. Thank you for advances. Kind Regards.

解决方案

The solution to this problem is constantly changing over time as Unity and the Android SDK change.

Note that his problem is presumably fixed in Unity 2017.1.

LATEST SOLUTION

1) For Windows, download "tools_r25.2.3-windows.zip" and unzip it.

2) For MacOSX, download "tools_r25.2.3-macosx.zip" and unzip it.

3) Add the path of the unzipped SDK to the Edit -->Preferences ---> External Tools --->SDK box.

STILL NOT WORKING?

Uninstall SDK Tools 25 and Android SDK Tools 26. Uninstall both SDK Platform-Tools and SDK Tools. Use version number below that.

OLD SOLUTION:

You did not setup your SDK properly.

Follow the steps below to setup your Android SDK.

1. Make sure that there are no spaces in your SDKpath. So create a folder called AndroidSDK in the C directory.

2. Copy your Android-sdk folder to the C:/AndroidSDK directory.

Now, your SDK path should look like this:

C:/AndroidSDK/Android-sdk

3. Update your Android SDK path in the Unity Editor.

Now, check if it works by trying to Build for Android again.

If it fails, continue from below

4. Download the latest Unity version.

5. Re-download SDK then copy the file to C:/AndroidSDK/Android-sdk.

6. Go back to Unity and Update the path

7. Build the Project for Android again, it will show an error and ask you to update SDK.

Click on the "Update Android SDK" buttom. Unity will Automatically update your SDK. Your SDK should then look like something below. Your problem should be gone by now.

这篇关于无法列出目标平台.请确保android sdk路径正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 18:02