Stuck at “.android/repositories.cfg could not be loaded.”

后端 未结 8 2067
时光说笑
时光说笑 2020-12-04 23:11
 brew cask install android-sdk

==> Caveats We will install android-sdk-tools, platform-tools, and build-tools for you. You can contr

相关标签:
8条回答
  • 2020-12-04 23:50

    For Windows 7 and above go to C:\Users\USERNAME\.android folder and follow below steps:

    1. Right click > create a new txt file with name repositories.txt
    2. Open the file and go to File > Save As.. > select Save as type: All Files
    3. Rename repositories.txt to repositories.cfg
    0 讨论(0)
  • 2020-12-04 23:52

    Actually, after waiting some time it eventually goes beyond that step. Even with --verbose, you won't have any information that it computes anything, but it does.

    Patience is the key :)

    PS : For anyone that cancelled at that step, if you try to reinstall the android-sdk package, it will complain that Error: No such file or directory - /usr/local/share/android-sdk. You can just touch /usr/local/share/android-sdk to get rid of that error and go on with the reinstall.

    0 讨论(0)
  • 2020-12-04 23:57

    Windows 10 Solution:

    For me this issue was due to downloading and creating an AVD using Android Studio and then trying to use that virtual device with the Ionic command line. I resolved this by deleting all existing emulators and creating a new one from the command line.

    (the avdmanager file typically lives in C:\Users\\Android\sdk\tools\bin)

    List existing emulators: avdmanager list avd

    Delete an existing emulator: avdmanager delete avd -n emulator_name

    Add system image: sdkmanager "system-images;android-24;default;x86_64"

    Create new emulator: sdkmanager "system-images;android-27;google_apis_playstore;x86"

    0 讨论(0)
  • 2020-12-04 23:59

    I used mkdir -p /root/.android && touch /root/.android/repositories.cfg to make it works

    0 讨论(0)
  • 2020-12-05 00:00

    Creating a dummy blank repositories.cfg works on Windows 7 as well. After waiting for a couple of minutes the installation finishes and you get the message on your cmd window -- done

    0 讨论(0)
  • 2020-12-05 00:07

    This happened on Windows 10 as well. I resolved it by creating an empty repositories.cfg file.

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