N
N
Nikolay Baranenko2018-03-18 23:11:41
Android
Nikolay Baranenko, 2018-03-18 23:11:41

How to solve Could not find any version that matches com.android.support:appcompat-v7:27.+?

Hello.
Trying to build my first android app

ОС Windwows 10,
Intellige IDEA 2017.2
JDK jdk1.8.0_161
Android API 27 Platform
Gradle 4.6
Android SDK 25.5.2

installed packages
5aaec7dc24cb1771363552.jpeg5aaec7e2dd187699260102.jpeg
return error
Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApkCopy'.
   > Could not find any version that matches com.android.support:appcompat-v7:27.+.
     Versions that do not match:
         26.0.0-alpha1
         25.3.1
         25.3.0
         25.2.0
         25.1.1
         + 31 more
     Required by:
         project :app
   > Could not find any version that matches com.android.support:design:27.+.
     Versions that do not match:
         26.0.0-alpha1
         25.3.1
         25.3.0
         25.2.0
         25.1.1
         + 21 more
     Required by:
         project :app

How to solve this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolay Baranenko, 2018-03-25
@drno-reg

in the app/build.gradle file we change

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

and in the top build.gradle
add to group
buildscript {
repositories {
mavenLocal()
        mavenCentral()
        maven {                                  // <-- Add this
            url 'https://maven.google.com/'
            name 'Google'
        }

and in
allprojects {
repositories {
maven {
            url "https://maven.google.com"
        }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question