Mac - Cordova Error After Installing Android Studio
On Mac os - Cordova stoped working after installing Android Studio (4.4.1) NOTE: it was working previous to the installation With the following errors: The command 'android' failed
Solution 1:
The android PATH changes and was not updated by the cordova, I had to do:
add the lines:
export ANDROID_SDK="/Users/%USR%/Library/Android/sdk"export ANDROID_HOME="$ANDROID_SDK"export ANDROID_PLATFORM_TOOLS="$ANDROID_SDK/platform-tools"export PATH="${PATH}:$ANDROID_HOME/tools:$ANDROID_PLATFORM_TOOLS"
update local.properties under
platforms/andorid
andplatforms/android/CordovaLib
(line 10) tosdk.dir=/Users/%USR%/Library/Android/sdk
where %USR% is your user name
Post a Comment for "Mac - Cordova Error After Installing Android Studio"