How do I request this error Error: (26, 13) Failed to resolve: com.android.support:appcompat-v7:27.+?

1

Good day, a few days ago I opened my Android studio project and I found this error

This appeared out of nowhere since everything was working well.

I thought I should just click on "Install Repository and sync project" and everything would be solved but nothing happens, do not start the update installer.

By tracking the dependencies of my .gradle I came to the conclusion that this error disappears when I remove the dependency to the Facebook SDK (compile 'com.facebook.android:facebook-android-sdk:[4,5)' ) for this reason I think this dependency is what requires me to install the update

this is my .gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.3"
    defaultConfig {
        applicationId 'code.taxigp.com.usuario'
        minSdkVersion 16
        targetSdkVersion 25
        versionCode 6
        versionName "6.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    productFlavors {
    }
}

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'
    })
    compile files('libs/activation.jar')
    //compile 'com.facebook.android:facebook-android-sdk:[4,5)'
    compile 'com.facebook.android:facebook-android-sdk:[4,5)'
    compile 'com.android.support:appcompat-v7:25.3.1'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    compile 'com.google.firebase:firebase-core:9.0.2'
    compile 'com.google.firebase:firebase-database:9.0.0'
    compile 'com.google.firebase:firebase-auth:9.0.2'
    compile 'com.google.android.gms:play-services-auth:9.0.2'
    compile 'com.github.bumptech.glide:glide:3.7.0'
    compile 'com.github.javiersantos:MaterialStyledDialogs:2.1'
    compile 'com.github.anshulagarwal06:PasswordEditText:v1.0'
    compile 'com.android.support:design:25.3.1'
    compile 'pl.droidsonroids.gif:android-gif-drawable:1.2.7'
    compile 'com.google.android.gms:play-services-maps:9.0.2'
    compile 'com.github.markushi:circlebutton:1.1'
    compile 'com.github.chrisbanes:PhotoView:2.1.3'
    compile 'com.getkeepsafe.taptargetview:taptargetview:1.10.0'
    compile 'com.github.dakatso:livebutton:1.0.0'
    compile 'com.daimajia.slider:library:1.1.5@aar'
    compile 'com.squareup.picasso:picasso:2.3.2'
    compile 'com.nineoldandroids:library:2.4.0'
    compile 'com.google.code.gson:gson:2.8.2'
    compile 'io.github.luizgrp.sectionedrecyclerviewadapter:sectionedrecyclerviewadapter:1.1.3'
    testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'

I already have the latest updates: How can I solve this problem?

in advance thank you very much

    
asked by Alvaro Fabian M 15.12.2017 в 05:05
source

1 answer

1

Fixed changing the dependence on facebook for this:

  

compile 'com.facebook.android:facebook-android-sdk:4.28.0'

where the SDK version is defined.

and not using the format indicated by the documentation , that apparently the format is only to install any of the 6 components of the SDK :

implement 'com.facebook.android:facebook-core:[4,5)'
implement 'com.facebook.android:facebook-login:[4,5)'
implement 'com.facebook.android:facebook-share:[4,5)'
implement 'com.facebook.android:facebook-places:[4,5)'
implement 'com.facebook.android:facebook-messenger:[4,5)'
implement 'com.facebook.android:facebook-applinks:[4,5)'
    
answered by 15.12.2017 / 16:05
source