编译出错

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ‘:NewProject’.

failed to find target with hash string ‘android-22’ in: E:\Andriod\android-sdk-windows\sdk

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.

BUILD FAILED

Total time: 1 mins 38.323 secs
Stopped 0 compiler daemon(s).
执行命令出错,返回值:1。

目前在构建面板勾选 Android Studio 的话,编译是需要 Android SDK 的 platforms 文件夹下有 android-22 的 API Level。请确认一下 Android SDK 中是否存在这个 API Level。