I recently had to change the drive on my macbook air and lost the settings for cordova.
Computer: MacBook Air - Early 2014
RAM: 4Gb
HDD: 256Gb
OS: Big Sur
I need to hire a support person who can access my computer via TeamViewer and configure it.
Before the change of the hard drive, the configuration took almost 20 minutes, but I did not make a backup
I attach the current commands and path.
Command:
File: /Users/jalvarez/.zshrc
export JAVA_HOME=/Library/Java/JavaVirtualMachines/[login to view URL]
export ANDROID_SDK_ROOT=/Users/jalvarez/Library/Android/sdk/
export PATH=$PATH:$ANDROID_SDK_ROOT=/Users/jalvarez/Library/Android/sdk/
export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools:$PATH
export PATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin:$PATH
export PATH=$PATH:$ANDROID_SDK_ROOT/emulator:$PATH
export PATH=$PATH:$ANDROID_SDK_ROOT/build-tools:$PATH
export ORG_GRADLE_PROJECT_cdvMinSdkVersion=20
Command:
jalvarez@Joses-MacBook-Air sourcecode % echo $ANDROID_SDK_ROOT
/Users/jalvarez/Library/Android/sdk/
Command:
jalvarez@Joses-MacBook-Air sourcecode % echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/[login to view URL]
Command:
jalvarez@Joses-MacBook-Air sourcecode % sdkmanager --licenses
All SDK package licenses accepted.======] 100% Computing updates...
Command:
jalvarez@Joses-MacBook-Air sdk % pwd
/Users/jalvarez/Library/Android/sdk
jalvarez@Joses-MacBook-Air sdk % ls -l
total 0
drwxr-xr-x 4 jalvarez staff 128 Feb 14 01:03 build-tools
drwxr-xr-x 3 jalvarez staff 96 Feb 14 01:08 cmdline-tools
drwxr-xr-x 20 jalvarez staff 640 Feb 14 01:02 emulator
drwxr-xr-x 3 jalvarez staff 96 Feb 14 01:06 extras
drwxr-xr-x 9 jalvarez staff 288 Feb 14 17:11 licenses
drwxr-xr-x 3 jalvarez staff 96 Feb 14 01:02 patcher
drwxr-xr-x 19 jalvarez staff 608 Feb 14 01:02 platform-tools
drwxr-xr-x 5 jalvarez staff 160 Feb 14 01:08 platforms
drwxr-xr-x 32 jalvarez staff 1024 Feb 14 11:10 skins
drwxr-xr-x 4 jalvarez staff 128 Feb 14 01:08 sources
drwxr-xr-x 3 jalvarez staff 96 Feb 14 11:11 system-images
drwxr-xr-x 14 jalvarez staff 448 Feb 14 01:02 tools
jalvarez@Joses-MacBook-Air sdk %
Command:
jalvarez@Joses-MacBook-Air sourcecode % cordova requirements android
Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: installed android-32,android-30,android-29
Gradle: installed /opt/gradle/gradle/bin/gradle
Command:
jalvarez@Joses-MacBook-Air PayMoney % cordova build android
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=/Users/jalvarez/Library/Android/sdk/ (recommended setting)
ANDROID_HOME=/Users/jalvarez/Library/Android/sdk (DEPRECATED)
Using Android SDK: /Users/jalvarez/Library/Android/sdk
Subproject Path: CordovaLib
Subproject Path: app
FAILURE: Build failed with an exception.
* Where:
Script '/Users/jalvarez/Pay_Money/PayMoney/platforms/android/CordovaLib/[login to view URL]' line: 69
* What went wrong:
A problem occurred evaluating script.
> No installed build tools found. Install the Android build tools version 30.0.3 or higher.