Android Studio北极狐2020.3.1(arm64版)找不到Android SDK位置
Posted
技术标签:
【中文标题】Android Studio北极狐2020.3.1(arm64版)找不到Android SDK位置【英文标题】:Android Studio Arctic Fox 2020.3.1 (arm64 version) cannot find Android SDK location 【发布时间】:2021-10-20 04:31:53 【问题描述】:我正在使用 m1 macbook pro(苹果硅)。 目前我卸载了旧版本的 android Studio(intel ver)并重新安装了 Android Studio Arctic Fox 2020.3.1(arm64 版本)。
我重新安装后,在 SDK Manager 中找不到 SDK 位置。 当我按下“编辑”按钮并按下“安装”按钮时,我的屏幕将安装屏幕但永远不会改变。 my SDK Manager screen
当我卸载旧版本的 Android Studio 时,我使用了这个命令。
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*
rm -Rf ~/.gradle
rm -Rf ~/.android
rm -Rf ~/Library/Android*
rm -Rf /usr/local/var/lib/android-sdk/
这是我的颤振医生 -v 的结果
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.5.1 20G80 darwin-arm, locale
ko-KR)
• Flutter version 2.2.3 at /Users/seunghyun/Developer/flutter
• Framework revision f4abaa0735 (7 weeks ago), 2021-07-01 12:46:11 -0700
• Engine revision 241c87ad80
• Dart version 2.13.4
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from:
https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK
components.
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup
for detailed instructions).
If the Android SDK has been installed to a custom location, please use
`flutter config --android-sdk` to update to that location.
[✓] Xcode - develop for ios and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.5.1, Build version 12E507
• CocoaPods version 1.10.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[!] Android Studio (not installed)
• Android Studio not found; download from
https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup
for detailed instructions).
[✓] Connected device (1 available)
• Chrome (web) • chrome • web-javascript • Google Chrome 92.0.4515.159
! Doctor found issues in 2 categories.
【问题讨论】:
你要安装android SDK 访问***.com/a/43797501/12100915 【参考方案1】:[!] Android Studio (not installed)
• Android Studio not found; download from
https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup
for detailed instructions).
我建议先尝试重新安装 android studio。如果这不起作用,请尝试阅读这篇文章:[tag][!] Android Studio (not installed) , when run flutter doctor while Android Studio installed on machine
【讨论】:
谢谢分享。我将我的 Android Studio 从下载文件夹移动到应用程序文件夹,该消息的问题现已解决。以上是关于Android Studio北极狐2020.3.1(arm64版)找不到Android SDK位置的主要内容,如果未能解决你的问题,请参考以下文章
Firebase 注册令牌未显示在 Android Studio logcat 中