Mac OS X 10.11.6下Android Studio 3.0启动崩溃(freetype相关)
Fix Android Studio 3.0 (AI-171.4443003) Crash on macOS 10.11.6
I’ve dealt with similar library conflict issues on older macOS versions with Android Studio, so let’s break down actionable fixes for your crash involving libfreetype.dylib.6 and libfontmanager.dylib:
Force Android Studio to use its bundled freetype library
The root issue is almost always a system/third-party freetype library overriding Android Studio’s own bundled version. Here’s how to prioritize the bundled one:
- Open Terminal and run this command to set the library path to prioritize Android Studio’s internal libraries:
export DYLD_LIBRARY_PATH="/Applications/Android Studio.app/Contents/jre/jre/lib:$DYLD_LIBRARY_PATH" - Launch Android Studio directly from the terminal to test:
open /Applications/Android Studio.app - If this works, make the change permanent by adding the environment variable to your shell config:
- Edit your profile file (e.g.,
~/.bash_profilefor Bash or~/.zshrcfor Zsh):nano ~/.bash_profile - Add this line at the bottom:
export DYLD_LIBRARY_PATH="/Applications/Android Studio.app/Contents/jre/jre/lib:$DYLD_LIBRARY_PATH" - Save and apply the changes:
source ~/.bash_profile
- Edit your profile file (e.g.,
Reset Android Studio's cache and configuration
Corrupted cache or old settings can sometimes exacerbate library conflicts. Try wiping them:
- Close Android Studio completely (if it’s stuck crashing, just proceed)
- Delete the cache, preferences, and log directories:
rm -rf ~/Library/Caches/Google/AndroidStudio3.0 rm -rf ~/Library/Preferences/Google/AndroidStudio3.0 rm -rf ~/Library/Logs/Google/AndroidStudio3.0 - Restart Android Studio and choose not to import old settings if prompted.
Clean up residual freetype libraries
Even after uninstalling brew’s freetype, there might be leftover libraries in system paths:
- Run this command to locate all
libfreetype.dylibfiles on your system:find / -name "libfreetype.dylib" 2>/dev/null - Look for entries outside the Android Studio app directory (like
/usr/local/libor/opt/homebrew/lib). Back up and remove them:sudo mv /usr/local/lib/libfreetype.dylib /usr/local/lib/libfreetype.dylib.backup - Restart your Mac and try launching Android Studio again.
Reinstall Android Studio completely
If all else fails, a clean reinstall might resolve lingering issues:
- Drag Android Studio from
/Applicationsto the Trash - Delete all related configuration directories:
rm -rf ~/Library/Application\ Support/Google/AndroidStudio3.0 rm -rf ~/Library/Caches/Google/AndroidStudio3.0 rm -rf ~/Library/Preferences/Google/AndroidStudio3.0 rm -rf ~/Library/Logs/Google/AndroidStudio3.0 - Download the exact Android Studio 3.0 (AI-171.4443003) build from the official archive, reinstall it, and avoid importing old settings.
内容的提问来源于stack exchange,提问作者puff
相关产品推荐
相关产品推荐

