lxk11153
V2EX  ›  问与答

ANDROID_SDK_ROOT "Cannot find AVD system path" "Broken AVD system path"

  •  
  •   lxk11153 · Apr 28, 2020 · 1269 views
    This topic created in 2207 days ago, the information mentioned may be changed or developed.
    • MacOS Mojave 10.14.6

    • commandlinetools-mac-6200805_latest.zip

    • 出错了!什么原因,网上搜懵了

    > ./emulator/emulator -avd '29d-x64'
    PANIC: Broken AVD system path. Check your ANDROID_SDK_ROOT value [/Volumes/Document/android_sdk]!
    
    • 各种信息
    > pwd
    /Volumes/Document/android_sdk
    
    > ./tools/bin/sdkmanager --sdk_root=$ANDROID_SDK_ROOT --list|head -n 10
    Installed packages:=====================] 100% Computing updates...
      Path                                    | Version | Description                    | Location
      -------                                 | ------- | -------                        | -------
      build-tools;29.0.3                      | 29.0.3  | Android SDK Build-Tools 29.0.3 | build-tools/29.0.3/
      emulator                                | 30.0.5  | Android Emulator               | emulator/
      patcher;v4                              | 1       | SDK Patch Applier v4           | patcher/v4/
      platforms;android-29                    | 4       | Android SDK Platform 29        | platforms/android-29/
      system-images;android-29;default;x86_64 | 7       | Intel x86 Atom_64 System Image | system-images/android-29/default/x86_64/
      tools                                   | 1.0.0   | Android SDK Tools 1            | tools/
    
    > ./tools/bin/avdmanager list 'avd'
    Available Android Virtual Devices:
        Name: 29d-x64
        Path: /Volumes/Document/android_sdk/avd
      Target: Default Android System Image
              Based on: Android 10.0 (Q) Tag/ABI: default/x86_64
      Sdcard: 512 MB
    
    > fgrep 'image.sysdir' ./avd/config.ini
    image.sysdir.1=android_sdk/system-images/android-29/default/x86_64/
    
    1 replies    2020-04-30 11:00:08 +08:00
    lxk11153
        1
    lxk11153  
    OP
       Apr 30, 2020
    好像是 platform-tools 没装的问题?有机会再试
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1039 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 22:34 · PVG 06:34 · LAX 15:34 · JFK 18:34
    ♥ Do have faith in what you're doing.