[英]How to install Android Support Library and google play services on android studio?
[英]Cannot find google play services or android support library in SDK
我對android開發或android SDK並不陌生,我已經使用了很多年了。 今天,我決定從Google那里獲取最新的SDK,因此我下載了它,安裝了api 21 SDK平台,以及其他內容,但是,我在SDK Manager或SDK文件夾(Google Play服務)中找不到Android支持庫或Google Play服務顯示在SDK管理器中,而不顯示在SDK文件夾中)
這有什么問題? ]
我也嘗試從頭開始重新安裝最新的SDK 4次
選中“工具”下的“ Android SDK工具”和“ Android SDK平台工具”並進行更新。 更新后,重新啟動SDK Manager。 Android支持存儲庫現在將在Extras下可用。
請在android SDK Manager中檢查是否已選擇了Google Play服務,或嘗試再次對其進行更新,並確保將其放入gradle
android{
}
dependencies{
classpath 'com.google.gms:google-services:3.0.0'
}
您的屏幕截圖看起來還可以。
確保您還安裝了“ Google Repository”和“ Android Support Repository”
下載它們后,您需要重新啟動Android Studio並將依賴項添加到gradle文件中。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.