kevinYCKim33 commented on issue #1346:
URL: https://github.com/apache/cordova-docs/issues/1346#issuecomment-2032383840

   Downgrading command line tools package from `latest` to version `10.0` 
worked for me. 
   
   Here is my `.zshrc` file at the moment:
   
   ```
   export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-11.jdk/Contents/Home
   export ANDROID_HOME=$HOME/Library/Android/sdk
   export PATH=$PATH:$ANDROID_HOME/platform-tools/
   # changed below from /latest/bin
   export PATH=$PATH:$ANDROID_HOME/cmdline-tools/10.0/bin/
   export PATH=$PATH:$ANDROID_HOME/build-tools
   export PATH=$PATH:$ANDROID_HOME/emulator/
   ```
   
   Also deleted my `node_modules`, `platforms`, `plugins`  and ran `npm i`, 
`cordova platform add android` I'm able to run `cordova run --emulator`
   
   As @breautek  stated, if we could update [Installing SDK Command-line Tools 
(latest)](https://cordova.apache.org/docs/en/12.x/guide/platforms/android/index.html#installing-sdk-command-line-tools-latest)
   to say to download `10.0` instead of `latest` it would really help out 
people setting up Cordova.  
   
   Huge thanks! 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to