在 visual studio 中使用 ionic + Cordova 我不断得到 "No installed build tools found. Install the Android build tools version 19.1.0 or higher."

Using ionic + Cordova in visual studio i keep getting "No installed build tools found. Install the Android build tools version 19.1.0 or higher."

我看过很多关于此的帖子,但是这些帖子中的 none 解决方案解决了我的问题。 我已经根据安装方式安装了android sdk,并添加了ANDROID_SDK_ROOT系统变量。

这是我的文件夹结构: folder structure

这是我的系统变量 System Variables

如果转到 powershell 并键入 sdkmanager --list --verbose,它将列出我所有已安装的软件包,并且包括所有构建工具。然而,当我在 visual studio 中 运行 ionic cordova run android --verbose --no-native-run 时,出现以下错误:

Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=C:\android-sdk-windows (recommended setting)
ANDROID_HOME=C:\Android\sdk (DEPRECATED)
Using Android SDK: C:\Android\sdk
Subproject Path: CordovaLib
Subproject Path: app

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
Where:
Script 'C:\ProyectoTFG\IonicProject\MonitorApp\platforms\android\CordovaLib\cordova.gradle' line: 64

What went wrong:
A problem occurred evaluating project ':app'.
> No installed build tools found. Install the Android build tools version 19.1.0 or higher.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
What went wrong:
A problem occurred configuring project ':app'.
> compileSdkVersion is not specified. Please add it to build.gradle

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

我无法让它与独立的 android sdk 一起工作。我不得不卸载它并安装 android studio。