简体   繁体   中英

ionic cordova bulid android : No installed build tools found. Install the Android build tools version 19.1.0 or higher

  • What went wrong: A problem occurred evaluating root project 'android'.

    No installed build tools found. Install the Android build tools version 19.1.0 or higher.

Install Android Studio and start a new project. It will then download and install the SDK for you.

If you already have Android Studio installed go to the SDK manager and update the build tools.

问题已经在.bash_profile中的路径中解决

In macOS Catalina, I am facing this problem in ionic 5 Cordova during an android build.

How I solved this?

  • Set ANDROID_SDK_ROOT environment for Android(because ANDROID_HOME depricaite ).
  • Set PATH environment for android build-tools
  • Save changes and refresh terminal(or close and open terminal).
  • Delete android platform.
  • Instal again android cordova platfome using ionic cordova build android .
  • At end run command ionic cordova build android

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM