Cannot install sdkmanager in windows 10

前端 未结 2 1662
难免孤独
难免孤独 2021-01-12 01:47

I am trying to install the sdk manager alone for using it with Eclipse. I downloaded the zip file provided by google -

commandlinetools-win-6200805_latest.zip

2条回答
  •  -上瘾入骨i
    2021-01-12 02:41

    I post this for my short note upon the solution. After done several research only specify sdk_root parameter solve Java problem.

    sdkmanager --sdk_root=%ANDROID_HOME% --install [Package_name]
    

    Where %ANDROID_HOME% specify a PATH to android SDK extracted. e.g. "d:\android-sdk" Package_name can be obtained from --list option.

    sdkmanager --sdk_root=%ANDROID_HOME% --list
    

    I use this for Appium so only platform-tools, platforms [API Level] Should be fine. Emulator if you want to use AVD.

提交回复
热议问题