General IT tribulations

From Allan Gitobu
Jump to navigation Jump to search

Installing Android studio on a Mac computer

After downloading and installing Android on a Mac I found that the program could not start. I found the solution on the page https://stackoverflow.com/questions/28315248/could-not-run-android-studio-on-my-mac-os-yosemite-error-the-following-sdk-com/28315443

The answer suggested that the user does these 2 steps

Go to the directory /Applications/Android Studio.app/Contents/MacOS

Run the command:

sudo ./studio


Find Java Installation in a Mac

$ /usr/libexec/java_home

Uninstalling Android from a Mac

https://howchoo.com/macos/how-to-completely-uninstall-android-studio-on-macos-and-os-x

Delete Mac Android Studio itself:

rm -Rf /Applications/Android\ Studio.app
rm -Rf ~/Library/Preferences/AndroidStudio*
rm -Rf ~/Library/Preferences/com.google.android.*
rm -Rf ~/Library/Preferences/com.android.*
rm -Rf ~/Library/Application\ Support/AndroidStudio*
rm -Rf ~/Library/Logs/AndroidStudio*
rm -Rf ~/Library/Caches/AndroidStudio*
rm -Rf ~/.AndroidStudio*

Delete all Android Studio projects (optional):

rm -Rf ~/AndroidStudioProjects

Delete Gradle files/cache:

rm -Rf ~/.android

Delete SDK tools:

rm -Rf ~/Library/Android*

Installing Android Studio

https://www.youtube.com/watch?v=ri90tcQL-Aw

Android Tutorial

https://developer.android.com/studio/run

The Emulator appear to launch but does not show up

https://stackoverflow.com/questions/42816127/waiting-for-target-device-to-come-online