Skip to main content
 首页 » 编程设计

macos之卡在 ".android/repositories.cfg could not be loaded."

2024年02月27日19bhlsheji

 brew cask install android-sdk 

==> Caveats We will install android-sdk-tools, platform-tools, and build-tools for you. You can control android sdk packages via the sdkmanager command. You may want to add to your profile: 'export ANDROID_HOME=/usr/local/share/android-sdk'

This operation may take up to 10 minutes depending on your internet connection. Please, be patient.

==> Downloading https://dl.google.com/android/repository/tools_r25.2.3-macosx.zip Already downloaded: /Users/ishandutta2007/Library/Caches/Homebrew/Cask/android-sdk--25.2.3.zip ==> Verifying checksum for Cask android-sdk ==> Warning: File /Users/ishandutta2007/.android/repositories.cfg could not be loaded.

请您参考如下方法:

创建文件!尝试:

mkdir -p .android && touch ~/.android/repositories.cfg