错误:(26, 13) 无法解决: com.android.support:appcompat-v7:27.+.



错误:(26, 13( 无法解决: com.android.support:appcompat-v7:27.+ 安装存储库和同步项目 在文件中显示 "在项目结构中显示"对话框

注意 - 我单击了安装存储库,但显示错误消息:所有软件包都不可用; 注意 - 我使用 3.3 版的本地 gradle 发行版,而 maven repo 使用 4.1 版,所以它也不能正常工作

build.gradle project
// Top-level build file where you can add configuration options common to all 
sub- projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}

在项目build.gradle的两个repositories中添加google()

相关内容

最新更新