ionic build Android | error: No installed build tools found. Please install the Android build tools

后端 未结 27 3472
被撕碎了的回忆
被撕碎了的回忆 2020-11-28 05:25

When I run ionic build android command in root of ionic project, I am getting this error:

FAILURE: Build failed with an exception.

27条回答
  •  一整个雨季
    2020-11-28 05:52

    FOR WINDOW: I have faced this type of issue. But after exploring it solved in my case. I am using window 10. just follow few steps below:

    1. download Android SKD Manager for windows. https://developer.android.com/studio at the end of this page. It is zip file. after extracting it will show tools directory.

    2. Go to drive C:\ create new folder 'android-sdk'. copy tools folder and past in
      C:\android-sdk

    3. open command prompt as Administrator. Go to cd " c:\android-sdk\tools\bin ". sdkmanager will be show here. type skdmanager, it will show like this [=======================================] 100% Computing updates...

    4. after that type "sdkmanager platform-tools" it will create platform-tools directory in C:\android-sdk

    5. Now set System environment variables: right click on PC select properties. system settings will popup. click on > Environment Variables. Environment Variables will popup.

    6. At this window System variables as like this. C:\android-sdk\platform-tools and C:\android-sdk\tools\bin

    7. run command to build tools sdkmanager "build-tools;27.0.3"

      Also make sure java path is defined. I hope it will solve problem.

提交回复
热议问题