【问题标题】: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."在 Visual Studio 中使用 ionic + Cordova 我不断收到“未找到已安装的构建工具。安装 Android 构建工具版本 19.1.0 或更高版本。”
【发布时间】:2020-11-03 10:33:49
【问题描述】:

我看过很多关于此的帖子,但这些帖子中的解决方案都没有解决我的问题。 我已经根据安装方式安装了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 cordova ionic-framework


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-02-27
      • 1970-01-01
      • 1970-01-01
      • 2017-08-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-01-05
      相关资源
      最近更新 更多