LinuxシステムAndroid SDKダウンロードバージョン、Warning:File/root/.android/repositories.cfg coul

1848 ワード

Linux CentOS 7システムAndroid SDKはandroid update sdk--no-uiを実行し、Warning:File/root/.android/repositories.cfg coulエラー内容:
[root@compile-server bin]# android update sdk --no-ui
*************************************************************************
The "android" command is deprecated.
For manual SDK, AVD, and project management, please use Android Studio.
For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager
*************************************************************************
"android" SDK commands can be translated to sdkmanager commands on a best-effort basis.
Continue? (This prompt can be suppressed with the --use-sdk-wrapper command-line argument
or by setting the USE_SDK_WRAPPER environment variable) [y/N]: y
Running /home/test/android-sdk-linux/tools/bin/sdkmanager --update

Warning: File /root/.android/repositories.cfg could not be loaded.
done


エラーの原因は/root/.Android/ディレクトリの下にrepositoriesが欠けています.cfgファイル
  • 1.repositoriesを作成します.cfgファイル
  • touch /root/.android/repositories.cfg
    
  • 2.運転再開
  • [root@compile-server bin]# android update sdk --no-ui
    *************************************************************************
    The "android" command is deprecated.
    For manual SDK, AVD, and project management, please use Android Studio.
    For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager
    *************************************************************************
    "android" SDK commands can be translated to sdkmanager commands on a best-effort basis.
    Continue? (This prompt can be suppressed with the --use-sdk-wrapper command-line argument
    or by setting the USE_SDK_WRAPPER environment variable) [y/N]: y
    Running /home/test/android-sdk-linux/tools/bin/sdkmanager --update
    
    done