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

后端 未结 27 3511
被撕碎了的回忆
被撕碎了的回忆 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:54

    You are missing android SDK tools. Please try the following:

    android list sdk --all
    android update sdk -u -a -t 
    

    Where is 1,2,3,n and

    -u (--no-ui)  # Headless mode
    -a (--all)    # Includes all packages (also obsolete ones)
    -t (--filter) # Filter by package index
    

提交回复
热议问题