【发布时间】:2020-10-06 12:12:14
【问题描述】:
我是初学者,在 Android Studio 中遇到此错误:-
错误:(26, 13) 无法解决: com.android.support:appcompat-v7:30.0.0 安装存储库并同步项目
在文件中显示
在项目结构对话框中显示
这是我的 gradle 代码:-
apply plugin: 'com.android.application'
android {
compileSdkVersion 30
buildToolsVersion "30.0.0"
defaultConfig {
applicationId "com.example.piyushbairagi.demoapp"
minSdkVersion 15
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:30.0.0'
testCompile 'junit:junit:4.12'
}
我正在使用 Android Studio 2.2.1 版本进行学习。任何帮助将不胜感激。
【问题讨论】:
标签: android android-studio android-support-library android-appcompat androidx