在视觉工作室中使用ionic + Cordova,我不断得到"No installed build tools found. Install the Android build tools versi



我看过很多关于这方面的帖子,但这些帖子中的解决方案都不能解决我的问题。我已经按照应该如何安装的方式安装了android sdk,并添加了android_sdk_ROOT系统变量。

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

这是我的系统变量系统变量

如果转到powershell并键入sdkmanager --list --verbose,它将列出我安装的所有软件包,并包括所有构建工具。然而,当我在visualstudio中运行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:Androidsdk (DEPRECATED)
Using Android SDK: C:Androidsdk
Subproject Path: CordovaLib
Subproject Path: app
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
Where:
Script 'C:ProyectoTFGIonicProjectMonitorAppplatformsandroidCordovaLibcordova.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一起工作。我不得不卸载它并安装安卓工作室。

相关内容

最新更新