Android build failing with build.xml:479: SDK does not have any Build Tools installed

后端 未结 6 731
粉色の甜心
粉色の甜心 2020-12-08 18:26

Why does my build fail with this error?

{android-sdk}/tools/ant/build.xml:479: SDK does not have any Build Tools installed

It

相关标签:
6条回答
  • 2020-12-08 18:51

    try run

    android update sdk -u
    

    in terminal.

    You will see logs like this on your screen

    Installing Archives:
      Preparing to install archives
      Downloading Android SDK Platform-tools, revision 17
      Installing Android SDK Platform-tools, revision 17
        Stopping ADB server succeeded.
        Installed Android SDK Platform-tools, revision 1799%)
      Downloading Android SDK Build-tools, revision 17
      Installing Android SDK Build-tools, revision 17
        Installed Android SDK Build-tools, revision 1799%)
      Downloading ARM EABI v7a System Image, Android API 17, revision 2
         (71%, 775 KiB/s, 41 seconds left))
    

    After Android SDK is successfully updated, make sure Build Tools is installed.

    enter image description here

    0 讨论(0)
  • 2020-12-08 18:51

    I installed Build Tools using SDK manager. They look installed, but they aren't. My {SDK}/build-tools folder is simply empty.

    I just downloaded sdk from http://developer.android.com/sdk/index.html and moved android-4.2.2 folder in my build-tools folder.

    0 讨论(0)
  • 2020-12-08 18:54

    Because you don't have android SDK build-tools installed:

    $ ~/Desktop/android/tools/android

    0 讨论(0)
  • 2020-12-08 18:55

    http://andrewma.com/2013/05/18/resolving-sdk-does-not-have-any-build-tools-installed-error/

    After upgrading my Android SDK to 22, I started running into failed builds with the error message:

    {android-sdk}/tools/ant/build.xml:479: SDK does not have any Build Tools installed

    Couldn’t find very much on the web on how to resolve this and eventually I realized that it was because I only updated existing packages. In SDK 22, the platform tools and build tools are split up into their own items in the SDK manager.

    Make sure you install the build-tools and platform-tools.

    0 讨论(0)
  • 2020-12-08 18:57

    Just go to .buildozer/android/platform/andoridsdk/tools and run Android SDK GUI. Install the latest build tools. I just worked around this; I installed buildtools 19.1 and the packaging was done successfully.

    0 讨论(0)
  • 2020-12-08 19:05

    For manual build-tools installation, go to: https://dl-ssl.google.com/android/repository/repository-8.xml Scroll down to <----build-tools----> Copy the zip file link (which one depends on your development environment operating system) and paste it in the url box and click search. Save it somewhere, extract it into the build-tools folder.

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