79210177

Date: 2024-11-21 08:00:15
Score: 0.5
Natty:
Report link

The error you're seeing indicates that your Android build tools are outdated or not properly installed. Specifically, it is asking for Android Build Tools version 34.0.0 or higher.

To resolve the issue, follow these steps,

Step 01 :- Update Android Build Tools

  1. Open Android Studio.
  2. Go to SDK Manager (found in the top-right corner of the Android Studio window).
  3. Go to SDK Manager (found in the top-right corner of the Android Studio window).
  4. Under SDK Tools, ensure that Android SDK Build-Tools is updated to version 34.0.0 or higher.
  5. If it's not installed, check the box and click Apply to install it.

Step 02 :- Verify Build Tools Version

After installation, ensure your build.gradle file points to the correct version of the build tools.

Look for a line like,

gradle Copy code buildToolsVersion "34.0.0"

If it doesn’t exist or is set to an older version, update it.

Step 03 :- Set Environment Variables (if necessary): Ensure that your environment variables point to the correct Android SDK location:

ANDROID_HOME or ANDROID_SDK_ROOT should be set to C:\Users\Clark\AppData\Local\Android\Sdk (make sure this path is correct).

Step 04 :- Clean and Rebuild:

Run the following commands in your project directory:

"cordova clean android" "cordova build android"

This should resolve the issue of missing build tools and allow the build process to complete successfully.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Roshan Madusanka