Ошибка sdk unity

In my case, I was trying to build and get APK for an old Unity 3D project (so that I can play the game in my Android phone). I was using the most recent Android Studio version, and all the SDK packages I could download via SDK Manager in Android Studio. SDK Packages was located in

C:/Users/Onat/AppData/Local/Android/Sdk
And the error message I got was the same except the JDK (Java Development Kit) version «jdk-12.0.2» . JDK was located in

C:Program FilesJavajdk-12.0.2
And Environment Variable in Windows was JAVA_HOME : C:Program FilesJavajdk-12.0.2

After 3 hours of research, I found out that Unity does not support JDK 10. As told in https://forum.unity.com/threads/gradle-build-failed-error-could-not-determine-java-version-from-10-0-1.532169/ . My suggestion is:

1.Uninstall unwanted JDK if you have one installed already. https://www.java.com/tr/download/help/uninstall_java.xml

2.Head to http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

3.Login to/Open a Oracle account if not already logged in.

4.Download the older but functional JDK 8 for your computer set-up(32 bit/64 bit, Windows/Linux etc.)

5.Install the JDK. Remember the installation path. (https://docs.oracle.com/cd/E19182-01/820-7851/inst_cli_jdk_javahome_t/)

6.If you are using Windows, Open Environment Variables and change Java Path via Right click My Computer/This PC>Properties>Advanced System Settings>Environment Variables>New>Variable Name: JAVA_HOME>Variable Value: [YOUR JDK Path, Mine was «C:Program FilesJavajdk1.8.0_221»]

7.In Unity 3D, press Edit > Preferences > External Tools and fill in the JDK path (Mine was «C:Program FilesJavajdk1.8.0_221»).

8.Also, in the same pop-up, edit SDK Path. (Get it from Android Studio > SDK Manager > Android SDK > Android SDK Location.)

9.If needed, restart your computer for changes to take effect.


Решения вопроса 1

DanielMcRon

У меня тоже такое было, Unity настолько была упёртой, что не хотела что-то видеть. Мне посоветовали установить Unity заново через Unity Hub и там в настройках выбрать чтобы дополнительно скачалось Android SDK

Пригласить эксперта


Ответы на вопрос 1

Предоставлю рабочий пакет программ Unity, Android SDK, NDK, JDK.
Спрашивайте в почте turtletools3@gmail.com


Комментировать


Похожие вопросы


  • Показать ещё
    Загружается…

05 июн. 2023, в 22:21

1500 руб./за проект

05 июн. 2023, в 22:02

500 руб./за проект

05 июн. 2023, в 21:36

100000 руб./за проект

Минуточку внимания

  • #2

А какая у тебя версия Unity?

SpideCo2


  • #3

А какая у тебя версия Unity?

2018 года

А какая у тебя версия Unity?

  • Screenshot_20200323_212324.jpg

    Screenshot_20200323_212324.jpg

    143,4 КБ

    · Просмотры: 565

  • #4

У тебя есть Unity Hub?

Если нет, то скачай, он пригодится.

План действий:
1. Заходишь в UnityHub.
2. Installs> ADD
3. В ADD выбирай версию Unity 2019 или 2020
4. Далее будет список из модулей > выбирай Android Build Support и прожми все галочки (SDK, JDK, NDK)
5. Далее они загрузятся и установятся
6. У тебя рядом с твоей версией Unity появиться новая (та которую ты выбрал в хабе)
7. Заходи в эту новую версию юнити, которая у тебя появилась(она нам нужна чисто для сдк, компилировать свою игру ты будешь в своем юнити)
8. Когда зайдешь в новый юнити:
Edit> Preferences> External tools
И на вкладке Android увидишь, что юнити нашел все необходимые компоненты
9. Скопируй ссылку на Андройд СДК
10. Теперь можешь зайти в свой юнити и переходи в build settings
11. Попробуй скомпилировать игру, и когда юнити попросит указать путь к сдк, то вставь в адрес, скопированную ссылку (в п.9)
12. Теперь все должно заработать, только что перепроверил, все работает

SpideCo2


  • #5

План действий:
1. Заходишь в UnityHub.
2. Installs> ADD
3. В ADD выбирай версию Unity 2019 или 2020
4. Далее будет список из модулей > выбирай Android Build Support и прожми все галочки (SDK, JDK, NDK)
5. Далее они загрузятся и установятся
6. У тебя рядом с твоей версией Unity появиться новая (та которую ты выбрал в хабе)
7. Заходи в эту новую версию юнити, которая у тебя появилась(она нам нужна чисто для сдк, компилировать свою игру ты будешь в своем юнити)
8. Когда зайдешь в новый юнити:
Edit> Preferences> External tools
И на вкладке Android увидишь, что юнити нашел все необходимые компоненты
9. Скопируй ссылку на Андройд СДК
10. Теперь можешь зайти в свой юнити и переходи в build settings
11. Попробуй скомпилировать игру, и когда юнити попросит указать путь к сдк, то вставь в адрес, скопированную ссылку (в п.9)
12. Теперь все должно заработать, только что перепроверил, все работает

Завтра, попробую обязательно, спасибо!))

  • #6

У тебя есть Unity Hub?

Если нет, то скачай, он пригодится.

План действий:
1. Заходишь в UnityHub.
2. Installs> ADD
3. В ADD выбирай версию Unity 2019 или 2020
4. Далее будет список из модулей > выбирай Android Build Support и прожми все галочки (SDK, JDK, NDK)
5. Далее они загрузятся и установятся
6. У тебя рядом с твоей версией Unity появиться новая (та которую ты выбрал в хабе)
7. Заходи в эту новую версию юнити, которая у тебя появилась(она нам нужна чисто для сдк, компилировать свою игру ты будешь в своем юнити)
8. Когда зайдешь в новый юнити:
Edit> Preferences> External tools
И на вкладке Android увидишь, что юнити нашел все необходимые компоненты
9. Скопируй ссылку на Андройд СДК
10. Теперь можешь зайти в свой юнити и переходи в build settings
11. Попробуй скомпилировать игру, и когда юнити попросит указать путь к сдк, то вставь в адрес, скопированную ссылку (в п.9)
12. Теперь все должно заработать, только что перепроверил, все работает

1.png

2.png

3.png

SpideCo2


  • #7

Спасибо большое, очень помогло!)

  • #8

Спасибо большое, очень помогло!)

B левой части каждого сообщения, слева от аватарки, есть стрелки ⇧ и ⇩. Не стесняйтесь оценивать ответы. Чтобы автору вопроса закрыть свой тикет (сменить префикс «Проблема» на «Решено»), надо выбрать лучший ответ. Просто нажмите значок 🏆 в левой части сообщения, слева от аватарки.

  • #9

Спасибо большое, очень помогло!)

Рад помочь :)

Every time I try to build my APK file to export onto my android device, Unity gives me an error message stating that it was unable to build the apk file and that I should make sure the Android sdk is properly configured. However, I have reinstalled the latest sdk multiple times trough Oracle or Android studio but I keep getting the same error messages. I can test the game just fine in the Unity editor but get problems every time I try to export. It also states in the preferences under external tools that I’m not using the proper android sdk tools and ndk tools however like I said I’ve tried installing the proper ones multiple times even going so far as to reinstall everything but I keep on getting the same errors.

Does someone possibly know what I should do?

This is the error message I get when opening the project in the Unity editor:

DirectoryNotFoundException: Could not find a part of the path 'D:Androidbuild-tools'.
System.IO.__Error.WinIOError (System.Int32 errorCode, System.String maybeFullPath) (at <23c160f925be47d7a4fd083a3a62c920>:0)
System.IO.FileSystemEnumerableIterator`1[TSource].HandleError (System.Int32 hr, System.String path) (at <23c160f925be47d7a4fd083a3a62c920>:0)
System.IO.FileSystemEnumerableIterator`1[TSource].CommonInit () (at <23c160f925be47d7a4fd083a3a62c920>:0)
System.IO.FileSystemEnumerableIterator`1[TSource]..ctor (System.String path, System.String originalUserPath, System.String searchPattern, System.IO.SearchOption searchOption, System.IO.SearchResultHandler`1[TSource] resultHandler, System.Boolean checkHost) (at <23c160f925be47d7a4fd083a3a62c920>:0)
System.IO.FileSystemEnumerableFactory.CreateFileNameIterator (System.String path, System.String originalUserPath, System.String searchPattern, System.Boolean includeFiles, System.Boolean includeDirs, System.IO.SearchOption searchOption, System.Boolean checkHost) (at <23c160f925be47d7a4fd083a3a62c920>:0)
System.IO.Directory.InternalGetFileDirectoryNames (System.String path, System.String userPathOriginal, System.String searchPattern, System.Boolean includeFiles, System.Boolean includeDirs, System.IO.SearchOption searchOption, System.Boolean checkHost) (at <23c160f925be47d7a4fd083a3a62c920>:0)
System.IO.Directory.InternalGetDirectories (System.String path, System.String searchPattern, System.IO.SearchOption searchOption) (at <23c160f925be47d7a4fd083a3a62c920>:0)
System.IO.Directory.GetDirectories (System.String path) (at <23c160f925be47d7a4fd083a3a62c920>:0)
UnityEditor.Android.AndroidSDKTools.FindLatestBuildTools () (at <252f3c2244e6415190676e82842416b7>:0)
UnityEditor.Android.AndroidSDKTools.UpdateToolsDirectories () (at <252f3c2244e6415190676e82842416b7>:0)
UnityEditor.Android.AndroidSDKTools..ctor (System.String sdkRoot) (at <252f3c2244e6415190676e82842416b7>:0)
UnityEditor.Android.AndroidSDKTools.CreateAndroidSDKTools (System.String rootDir) (at <252f3c2244e6415190676e82842416b7>:0)
UnityEditor.Android.AndroidSDKTools.GetInstance[T] (UnityEditor.Android.AndroidSDKTools+InstanceCreator creator) (at <252f3c2244e6415190676e82842416b7>:0)
UnityEditor.Android.AndroidSDKTools.GetInstance () (at <252f3c2244e6415190676e82842416b7>:0)
UnityEditor.Android.SDKManager..ctor () (at <252f3c2244e6415190676e82842416b7>:0)
UnityEditor.Android.SDKManager.GetInstance () (at <252f3c2244e6415190676e82842416b7>:0)
UnityEditor.Android.AndroidPreferenceWindowExtension.WritePreferences () (at <252f3c2244e6415190676e82842416b7>:0)
UnityEditor.PreferencesProvider.WritePreferences () (at C:/buildslave/unity/build/Editor/Mono/PreferencesWindow/PreferencesSettingsProviders.cs:753)
UnityEditor.PreferencesProvider.ApplyChangesToPrefs (System.Boolean force) (at C:/buildslave/unity/build/Editor/Mono/PreferencesWindow/PreferencesSettingsProviders.cs:472)
UnityEditor.PreferencesProvider.ShowExternalApplications (System.String searchContext) (at C:/buildslave/unity/build/Editor/Mono/PreferencesWindow/PreferencesSettingsProviders.cs:347)
UnityEditor.PreferencesProvider.OnGUI (System.String searchContext, System.Action`1[T] drawAction) (at C:/buildslave/unity/build/Editor/Mono/PreferencesWindow/PreferencesSettingsProviders.cs:298)
UnityEditor.PreferencesProvider+<CreateExternalToolsProvider>c__AnonStorey1.<>m__0 (System.String searchContext) (at C:/buildslave/unity/build/Editor/Mono/PreferencesWindow/PreferencesSettingsProviders.cs:201)
UnityEditor.SettingsProvider.OnGUI (System.String searchContext) (at C:/buildslave/unity/build/Editor/Mono/Settings/SettingsProvider.cs:103)
UnityEditor.SettingsWindow.DrawControls () (at C:/buildslave/unity/build/Editor/Mono/Settings/SettingsWindow.cs:322)
UnityEditor.SettingsWindow.DrawSettingsPanel () (at C:/buildslave/unity/build/Editor/Mono/Settings/SettingsWindow.cs:313)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:298)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:483)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:466)
UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase evt) (at C:/buildslave/unity/build/Modules/UIElements/IMGUIContainer.cs:447)
UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at C:/buildslave/unity/build/Modules/UIElements/Events/MouseCaptureDispatchingStrategy.cs:93)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at C:/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:280)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at C:/buildslave/unity/build/Modules/UIElements/EventDispatcher.cs:156)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at C:/buildslave/unity/build/Modules/UIElements/Panel.cs:189)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at C:/buildslave/unity/build/Modules/UIElements/UIElementsUtility.cs:255)
UnityEngine.UIElements.UIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at C:/buildslave/unity/build/Modules/UIElements/UIElementsUtility.cs:78)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
This is the error message I get after the apk build and run has failed:
CommandInvokationFailure: Unable to install APK to device. Please make sure the Android SDK is installed and is properly configured in the Editor. See the Console for more details.
    C:/Users/mauri/AppData/Local/Android/Sdkplatform-toolsadb.exe -s "2245120c5e0d7ece" install -r "C:UsersmauriDesktopBall Tapball tap.apk"

    stderr[
    adb: failed to install C:UsersmauriDesktopBall Tapball tap.apk: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.BallTap.Momo signatures do not match previously installed version; ignoring!]
    ]
    stdout[
    Performing Streamed Install
    ]
    exit code: 1
    UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <252f3c2244e6415190676e82842416b7>:0)
    UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <252f3c2244e6415190676e82842416b7>:0)
    UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <252f3c2244e6415190676e82842416b7>:0)
    UnityEditor.Android.ADB.RunInternal (System.String[] command, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <252f3c2244e6415190676e82842416b7>:0)
    UnityEditor.Android.ADB.Run (System.String[] command, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <252f3c2244e6415190676e82842416b7>:0)
    UnityEditor.Android.AndroidDevice.Exec (System.String[] command, System.String errorMsg) (at <252f3c2244e6415190676e82842416b7>:0)
    UnityEditor.Android.AndroidDevice.Install (System.String apkfile) (at <252f3c2244e6415190676e82842416b7>:0)
    UnityEditor.Android.AndroidDeploymentTargetsExtension+<UploadAPK>c__AnonStorey3.<>m__0 () (at <252f3c2244e6415190676e82842416b7>:0)
    UnityEditor.Android.AndroidDeploymentTargetsExtension.UploadAPK (UnityEditor.Android.AndroidBuildProperties buildProperties, UnityEditor.Android.AndroidDevice device, UnityEditor.Android.AndroidDeploymentTargetsExtension+LaunchProgressTaskManager taskManager) (at <252f3c2244e6415190676e82842416b7>:0)
    UnityEditor.Android.AndroidDeploymentTargetsExtension+<LaunchBuildOnTarget>c__AnonStorey0.<>m__2 () (at <252f3c2244e6415190676e82842416b7>:0)
    UnityEditor.ProgressTaskManager.Run () (at C:/buildslave/unity/build/Editor/Mono/Utils/ProgressBarUtils.cs:71)
    UnityEditor.Android.AndroidDeploymentTargetsExtension.LaunchBuildOnTarget (UnityEditor.DeploymentTargets.IDeploymentTargetsMainThreadContext context, UnityEditor.BuildProperties buildProperties, UnityEditor.DeploymentTargets.DeploymentTargetId targetId, UnityEditor.ProgressHandler progressHandler) (at <252f3c2244e6415190676e82842416b7>:0)
    UnityEditor.DeploymentTargets.DeploymentTargetManager.LaunchBuildOnTarget (UnityEditor.BuildProperties buildProperties, UnityEditor.DeploymentTargets.DeploymentTargetId targetId, UnityEditor.ProgressHandler progressHandler) (at C:/buildslave/unity/build/Editor/Mono/DeploymentTargets/DeploymentTargetManager.cs:45)
    UnityEditor.PostprocessBuildPlayer+<LaunchOnTargets>c__AnonStorey1.<>m__0 () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:203)
    UnityEditor.ProgressTaskManager.Run () (at C:/buildslave/unity/build/Editor/Mono/Utils/ProgressBarUtils.cs:71)
    UnityEditor.PostprocessBuildPlayer.LaunchOnTargets (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget buildTarget, UnityEditor.Build.Reporting.BuildReport buildReport, System.Collections.Generic.List`1[T] launchTargets) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:222)
    UnityEditor.Android.PostProcessAndroidPlayer.Launch (UnityEditor.BuildTarget target, System.String installPath, UnityEditor.Build.Reporting.BuildReport report) (at <252f3c2244e6415190676e82842416b7>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.LaunchPlayer (UnityEditor.Modules.BuildLaunchPlayerArgs args) (at <252f3c2244e6415190676e82842416b7>:0)
    UnityEditor.PostprocessBuildPlayer.Launch (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget buildTarget, System.String path, System.String productName, UnityEditor.BuildOptions options, UnityEditor.Build.Reporting.BuildReport buildReport) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:166)
    UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()


Go to Unity3D


r/Unity3D

News, Help, Resources, and Conversation. A User Showcase of the Unity Game Engine.




Members





Online



Android SDK is missing build-tools

I don’t know why but in the Unity 2020.3.13 version, I was getting this kind of error dialog box when I try to export a build.

Android SDK is missing build-tools

I have downloaded the whole package from Unity HUB rather than doing any manual stuff and these are my External Tools screenshot:

Preferences External Tools

At present, I can’t able to export android build because of this error message so please guide me to solve this.

Solution 1

Try installing Android SDK into some folder that does not require administrator priviledges to access (something like C:SDKsandroid-sdk). It worked for me.

Solution 2

I had a similar issue trying to update my android sdk and fixed it by running the sdk manager manually. In my Unity Editor console it printed out a long license agreement along with errors telling me what to do.

Firstly, if it does not exist, create an empty repositories.cfg file in your .android folder. For me that file is located at C:Usersmyuser.android

Next, run the sdkmanager.bat like this in command prompt (your results and path may vary depending on your Unity version).

"C:Program FilesUnityHubEditor2019.2.13f1EditorDataPlaybackEnginesAndroidPlayerSDKtoolsbinsdkmanager.bat"  "platforms;android-29"

I was then able to press y and accept the license.

Solution 3

What worked for me was to locate the «sdkmanager.bat» folder, start the command prompt with admin rights from there, and enter the following command:

.sdkmanager "platform-tools" "platforms;android-29"

Solution 4

4 I face the same issue trying to update my android SDK and Try to build with both JAVA SDK tool this resolve my Issue (check ref Img)

Android build fails [2019.3.6f1]: Unable to update the SDK

CommandInvokationFailure: Unable to update the SDK. Please run the SDK Manager manually to make sure you have the latest set of tools and the required platforms installed.
/Users/yogesh/Library/android-sdk/tempToolsDirbinsdkmanager.bat —sdk_root=/Users/yogesh/Library/Android/sdk tools platform-tools «build-tools;28.0.3»

Solution 5

I ran into this problem, and fixed it by defining the ‘JAVA_HOME’ environment variable, which was required for Unity’s sdkmanager.bat to run. After this, Unity was able to seamlessly install from within Unity as intended.

Comments

  • Unity Latest update 2018.3
    SDK Tools and Platforms up to date according to SDK Manager.
    Trying to build and run Android Build Settings.

    After updating the SDK, Unity still asks me to update the SDK by pressing a button built into the software. After I do this it tells me:

    Unable to update the SDK. Please run the SDK Manager manually to make
    sure you have the latest set of tools and the required platforms
    installed. See console log for details.

    When I take a look at the console, it tells me:

    CommandInvokationFailure: Unable to update the SDK. Please run the SDK Manager manually to make sure you have the latest set of tools and the required platforms installed. 
    C:Program Files (x86)Androidandroid-sdktempToolsDirbinsdkmanager.bat --sdk_root=C:Program Files (x86)Androidandroid-sdk tools platform-tools "build-tools;28.0.3"
    
    stderr[
    Error: Failed to find package Files
    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    ]
    stdout[
    
    ]
    exit code: 1
    UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <e1c3953b4cf040ddb1400046b1c34897>:0)
    UnityEditor.Android.Command.RunWithStdin (System.Diagnostics.ProcessStartInfo psi, System.String errorMsg, System.Collections.Generic.IEnumerable`1[T] input) (at <e1c3953b4cf040ddb1400046b1c34897>:0)
    UnityEditor.Android.AndroidSDKTools.RunAndroidSdkTool (System.String toolName, System.String arguments, System.Boolean updateCommand, System.String errorMsg, System.String toolsDir) (at <e1c3953b4cf040ddb1400046b1c34897>:0)
    UnityEditor.Android.AndroidSDKTools.UpdateSDK (UnityEditor.Android.AndroidJavaTools javaTools) (at <e1c3953b4cf040ddb1400046b1c34897>:0)
    UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK+SDKComponentDetector.Update (UnityEditor.Android.AndroidSDKTools sdkTools, UnityEditor.Android.AndroidJavaTools javaTools, System.Version minVersion, UnityEditor.Android.PostProcessor.ProgressHandler onProgress) (at <e1c3953b4cf040ddb1400046b1c34897>:0)
    UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK.EnsureSDKComponentVersion (UnityEditor.Android.AndroidJavaTools javaTools, System.Version minVersion, UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK+SDKComponentDetector detector) (at <e1c3953b4cf040ddb1400046b1c34897>:0)
    UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <e1c3953b4cf040ddb1400046b1c34897>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <e1c3953b4cf040ddb1400046b1c34897>:0)
    UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    

    I have updated the SDK manually, it also gave me an error there. I fixed it doing this trick:
    Can’t update tools — Android SDK Command Line Tools for Windows

    Anyway, I ran Unity with administrator, I ran the cmd with administrator for the manual updates and yet it still wont build. Help needed, thanks.

    SCREENSHOT: Unity SDK Update for Android build

  • I have done this aswell. I have an android-sdk folder in my C: and updated the SDK there with cmd sdkmanager.bat --update. Right now I have used that folder instead of the Program Files (x86) folder for SDK External Tools in Unity and now it works. Yet it wont run and build without an android device connected to the computer.

Recents

Related

Понравилась статья? Поделить с друзьями:
  • Ошибка sendrequest error
  • Ошибка sdbl таблица или поле
  • Ошибка sending nordata
  • Ошибка sdbl поле не может принимать значение null
  • Ошибка sendajaxtocrop что делать