SDKmanager : Warning: Could not create setting. java.lang.IllegalArgumentException

后端 未结 3 1189
独厮守ぢ
独厮守ぢ 2020-12-16 16:42

Im trying to install androidSDK on my Ubuntu but when i try to run the SDK manager on the tools/bin/sdkmanager folder i get this message:

My Ubuntu was installed rec

相关标签:
3条回答
  • 2020-12-16 17:02

    Using the docs as guide I was able to make it work moving the installation to the following path in Windows: %LocalAppData%\Android\android-sdk\cmdline-tools\2.1 for version 2.1. Similar to what shahab Uddin suggested but with - instead of _ in android-sdk.

    Your version can be checked in the source.properties file.

    0 讨论(0)
  • 2020-12-16 17:08

    After messing around with the console, i think i found out what is happening. Apparently there's a bug in the way the SDK locates the SDK installation folder.

    So all i needed to do way specify it by using --sdk_root=${ANDROID_HOME} after exporting the path with export ANDROID_HOME=~/Android/Sdk

    So the full command was yes | ~/Android/Sdk/tools/bin/sdkmanager --sdk_root=${ANDROID_HOME} --version

    Got the solution from another post: Android Command line tools sdkmanager always shows: Warning: Could not create settings

    0 讨论(0)
  • 2020-12-16 17:11

    Android SDK Tools now rest in following location: "android_sdk/cmdline-tools/version/bin/";

    Therefore to solve this problem in Windows (same can be replicated in other OS), do the following:

    1. Inside your android_sdk folder, create the folder: cmdline-tools and inside it create another folder: version extract / put all your files "/bin /lib NOTICE and sources.properties" files inside this version folder.

    2. Set ANDROID_HOME to your android_sdk folder.

    3. Add to your System Path: android_sdk\cmdlineAndroidSDK\cmdline-tools\version\bin\

    Similarly, place your Android SDK Platform Tools inside your android_sdk/platform-tools/ and add corresponding PATH to ENVIRONMENTAL VARIABLES under System Variables

    0 讨论(0)
提交回复
热议问题