我试过使用commandine更新android sdk
./sdkmanager "build-tools;25.0.3"
./sdkmanager "platforms;android-25"
但该项目仍然抱怨
Could not find com.google.firebase:firebase-core:10.2.6.
,原因是// Getting a "Could not find" error? Make sure you have
// the latest Google Repository in the Android SDK manager`.
有人能告诉我从命令行更新或获取
Google repository
的命令吗? 最佳答案
只是用命令解决了它
./sdkmanager "extras;google;m2repository"
./sdkmanager "extras;android;m2repository"
升级到新版本的repo
./sdkmanager "platform-tools" "platforms;android-26"
列出所有内容
./sdkmanager --list
全部更新
./sdkmanager --update