Android Studio をアンインストール
$ rm -Rf /Applications/Android\ Studio.app $ rm -Rf ~/Library/Preferences/AndroidStudio* $ rm ~/Library/Preferences/com.google.android.studio.plist rm: /Users/oki2a24/Library/Preferences/com.google.android.studio.plist: No such file or directory $ rm -Rf ~/Library/Application\ Support/AndroidStudio* $ rm -Rf ~/Library/Logs/AndroidStudio* $ rm -Rf ~/Library/Caches/AndroidStudio* $ rm -Rf ~/.gradle $ rm -Rf ~/.android $ rm -Rf ~/Library/Android*
JDK 7 をアンインストール
- 【Mac】間違えたので JDK 8 をアンインストール後、JDK 7 をインストールする手順!【Java】 – oki2a24
sudo rm -rf /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/
$ java -version java version "1.7.0_80" Java(TM) SE Runtime Environment (build 1.7.0_80-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode) $ $ sudo rm -rf /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/ Password: $ java -version No Java runtime present, requesting install. $
SDKMAN! をインストール
- Installation – SDKMAN!
- 次のコマンドでインストール、反映、確認
curl -s "https://get.sdkman.io" | bash source "$HOME/.sdkman/bin/sdkman-init.sh" sdk version
$ curl -s "https://get.sdkman.io" | bash Thanks for using... SSSSSSSSSSSSSSS DDDDDDDDDDDDD KKKKKKKKK KKKKKKK SS:::::::::::::::SD::::::::::::DDD K:::::::K K:::::K S:::::SSSSSS::::::SD:::::::::::::::DD K:::::::K K:::::K S:::::S SSSSSSSDDD:::::DDDDD:::::D K:::::::K K::::::K S:::::S D:::::D D:::::DKK::::::K K:::::KKK S:::::S D:::::D D:::::D K:::::K K:::::K S::::SSSS D:::::D D:::::D K::::::K:::::K SS::::::SSSSS D:::::D D:::::D K:::::::::::K SSS::::::::SS D:::::D D:::::D K:::::::::::K SSSSSS::::S D:::::D D:::::D K::::::K:::::K S:::::S D:::::D D:::::D K:::::K K:::::K S:::::S D:::::D D:::::DKK::::::K K:::::KKK SSSSSSS S:::::SDDD:::::DDDDD:::::D K:::::::K K::::::K S::::::SSSSSS:::::SD:::::::::::::::DD K:::::::K K:::::K S:::::::::::::::SS D::::::::::::DDD K:::::::K K:::::K SSSSSSSSSSSSSSS DDDDDDDDDDDDD KKKKKKKKK KKKKKKK mmmmmmm mmmmmmm aaaaaaaaaaaaa nnnn nnnnnnnn mm:::::::m m:::::::mm a::::::::::::a n:::nn::::::::nn m::::::::::mm::::::::::m aaaaaaaaa:::::an::::::::::::::nn m::::::::::::::::::::::m a::::ann:::::::::::::::n m:::::mmm::::::mmm:::::m aaaaaaa:::::a n:::::nnnn:::::n m::::m m::::m m::::m aa::::::::::::a n::::n n::::n m::::m m::::m m::::m a::::aaaa::::::a n::::n n::::n m::::m m::::m m::::ma::::a a:::::a n::::n n::::n m::::m m::::m m::::ma::::a a:::::a n::::n n::::n m::::m m::::m m::::ma:::::aaaa::::::a n::::n n::::n m::::m m::::m m::::m a::::::::::aa:::a n::::n n::::n mmmmmm mmmmmm mmmmmm aaaaaaaaaa aaaa nnnnnn nnnnnn Now attempting installation... Looking for a previous installation of SDKMAN... Looking for unzip... Looking for zip... Looking for curl... Looking for sed... Installing SDKMAN scripts... Create distribution directories... Getting available candidates... Prime the config file... Download script archive... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0 100 20838 100 20838 0 0 3230 0 0:00:06 0:00:06 --:--:-- 21571 Extract script archive... Install scripts... Set version to 5.5.9+231 ... Updated existing /Users/oki2a24/.bashrc Attempt update of zsh profiles... Created and initialised /Users/oki2a24/.zshrc All done! Please open a new terminal, or run the following in the existing one: source "/Users/oki2a24/.sdkman/bin/sdkman-init.sh" Then issue the following command: sdk help Enjoy!!! $ source "$HOME/.sdkman/bin/sdkman-init.sh" $ sdk version SDKMAN 5.5.9+231
おわりに
JDK がそういえば Mac に入っていたはず、、、でも何で使ったのだろう?Android Studio だ!、と思い出し、使用していないから削除しよう、そして、JDK はまた使うだろうから、SDKMAN! だけでも入れておこう、ということで今回の投稿となりました。
以上です。