Сбой синхронизации Gradle Android studio 3.1.1
привет парень
я устанавливаю android studio 3.1.1 и создаю новый проект ... но синхронизация проекта в любой момент терпела неудачу ! android studio gradle-это 4.4
этот Gradle в:
apply plugin: 'com.android.application' android { compileSdkVersion 27 defaultConfig { applicationId "ir.rahgoshafan.exampleapp" minSdkVersion 17 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' } } buildToolsVersion '27.0.3' buildscript { repositories { jcenter() google() maven { url 'http://repo1.maven.org/maven2' } maven { url 'http://jcenter.bintray.com' } maven { url "https://maven.google.com" } maven { url "https://jitpack.io" } } dependencies { classpath 'com.android.tools.build:gradle:3.1.0' } } } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'com.android.support:appcompat-v7:27.0.2' implementation 'com.android.support:design:27.0.2' implementation 'com.android.support.constraint:constraint-layout:1.0.2' implementation 'com.android.support:support-vector-drawable:27.0.2' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' }
эта ошибка:
Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:appcompat-v7:27.0.2. Open File Show Details Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:design:27.0.2. Open File Show Details Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:support-vector-drawable:27.0.2. Open File Show Details Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.android.support.test:runner:1.0.1. Open File Show Details Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.android.support.test.espresso:espresso-core:3.0.1. Open File Show Details Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.android.support:appcompat-v7:27.0.2. Open File Show Details Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.android.support:design:27.0.2. Open File Show Details Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.android.support:support-vector-drawable:27.0.2. Open File Show Details Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.android.support:appcompat-v7:27.0.2. Open File Show Details Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.android.support:design:27.0.2. Open File Show Details Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.android.support:support-vector-drawable:27.0.2. Open File Show Details Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve junit:junit:4.12. Open File Show Details Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.android.support:appcompat-v7:27.0.2. Open File Show Details Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.android.support:design:27.0.2. Open File Show Details Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.android.support:support-vector-drawable:27.0.2. Open File Show Details Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.android.support:appcompat-v7:27.0.2. Open File Show Details Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.android.support:design:27.0.2. Open File Show Details Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.android.support:support-vector-drawable:27.0.2. Open File Show Details Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve junit:junit:4.12. Open File Show Details
Что я уже пробовал:
я меняю совместимости приложений для
implementation 'com.android.support:appcompat-v7:27.0.3'
но подобные ошибки
David Crow
Вы пробовали изменить его на:implementation 'com.android.support:appcompat-v7:27.+'
Kim Gabinete
привет.. как это сделать appcompat? я новичок в использовании android studio и сталкиваюсь с той же ошибкой.