failed to find Build Tools revision 21.1.1 - sdk up to date

后端 未结 5 1190
清酒与你
清酒与你 2020-11-30 23:41

I´m running a linux android sdk installation and my new project needs Build tools 21.1.1

Somehow, this build tools do not exist, eventhough my sdk is up to date, but

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-01 00:36

    What worked for me was:

    android list sdk -a
    

    Which showed me the following list:

    1- Android SDK Tools, revision 24.0.2
    2- Android SDK Platform-tools, revision 21
    3- Android SDK Build-tools, revision 21.1.2
    4- Android SDK Build-tools, revision 21.1.1
    5- Android SDK Build-tools, revision 21.1
    6- Android SDK Build-tools, revision 21.0.2
    7- Android SDK Build-tools, revision 21.0.1
    ... and a great many more
    

    Followed by the command:

    android update sdk -a -u -t 3
    

    The "3" in the command refers the the index listed in the output of the first command.

提交回复
热议问题