android studio partially installed,maven - android studio gradle can't resolve appcompat-v7:27.0.2 -...

I was faced with a strange problem.

I'm using android studio 3.0.1 . the latest appcompat version that grade resolve is appcompat:v7:26.0.0_alpha1

build.gradle (module: app)

android {

compileSdkVersion 27

buildToolsVersion '27.0.3'

defaultConfig {

applicationId "someID"

minSdkVersion 16

targetSdkVersion 27

versionCode 1

versionName "1.0"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

}

buildTypes {

release {

minifyEnabled false

proguardFiles getDefaultProguardFile('proguard-android.txt'),

'proguard-rules.pro'

}

}

sourceSets { main { java.srcDirs = ['src/main/java', 'src/main/helpers'] } }

}

dependencies {

compile fileTree(include: ['*.jar'], dir: 'libs')

androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {

exclude group: 'com.android.support', module: 'support-annotations'

})

// Support v7

//compile 'com.android.support:appcompat-v7:26.+'

compile "com.android.support:support-core-utils:27.0.2"

compile 'com.android.support:appcompat-v7:27.0.2'

// JSON Parsing

compile 'com.google.code.gson:gson:2.8.2'

compile 'com.squareup.retrofit2:converter-gson:2.1.0'

// Retrofit

compile 'com.squareup.retrofit2:retrofit:2.3.0'

compile 'com.android.support.constraint:constraint-layout:1.0.2'

//testCompile 'junit:junit:4.12'

}

and this is build.gradle(Project)

buildscript {

repositories {

jcenter()

google()

}

dependencies {

classpath 'com.android.tools.build:gradle:3.0.1'

}

}

allprojects {

repositories {

jcenter()

google()

}

}

task clean(type: Delete) {

delete rootProject.buildDir

}

i got errors like

Error:Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:support-core-utils:27.0.2.

i'm using proxy and i can get previous releases till v:26.0.0_alpha1

ps:i tried compile 'com.android.support:appcompat-v7:27.+'" and clean project

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值