我正在尝试添加 float 搜索 View
library到我的安卓应用程序。添加依赖项后,我得到:
Error:Could not find com.android.support:appcompat-v7:25.3.1.
Required by:
project :app
Please install the Android Support Repository from the Android SDK Manager.
因此,我在我的模块 Gradle
文件中添加了以下依赖项:
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support:multidex:1.0.1'
compile 'com.android.support:percent:25.3.1'
compile 'com.android.support:support-v4:25.3.1'
compile 'com.android.support:support-v13:25.3.1'
同步 Gradle
文件后,我得到了同样的错误。然后我清理项目,甚至 https://github.com/arimorty/floatingsearchview Invalidate cache
到项目但响应相同。
我的 Android Studio
已更新并安装了 API 级别 25。
我在这里做错了什么?
Gradle 文件
(根据建议编辑 Gradle 文件)
android {
compileSdkVersion 25
buildToolsVersion '25.0.3'
defaultConfig {
applicationId "com.app.seeker"
minSdkVersion 21
targetSdkVersion 25
versionCode 1
multiDexEnabled true
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
任何帮助将不胜感激
最佳答案
为了使用 compile 'com.android.support:appcompat-v7:25.3.1'
你的 compileSdkVersion
必须是 25,所以更新它。
以同样的方式,考虑将您的buildToolsVersion
升级到版本25.0.3
关于android - 在 Android Studio 中找不到 com.android.support :appcompat-v7:25. 3.1?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44372761/