Android 未能解析:com.github

Android 未能解析:com.github,android,gradle,android-gradle-plugin,Android,Gradle,Android Gradle Plugin,一切都很好,然后我尝试添加一些社交登录助手库,第一次遇到这个问题,然后我把它删除了,问题仍然存在 谷歌和安卓的每一个依赖都运行良好 但以com.github开头的每个依赖项都会失败 应用程序gradle apply plugin: 'com.android.application' android { compileSdkVersion 26 defaultConfig { applicationId "application_id" minS

一切都很好,然后我尝试添加一些社交登录助手库,第一次遇到这个问题,然后我把它删除了,问题仍然存在

谷歌和安卓的每一个依赖都运行良好

但以com.github开头的每个依赖项都会失败

应用程序gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 26

    defaultConfig {
        applicationId "application_id"
        minSdkVersion 21
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        multiDexEnabled true
        renderscriptTargetApi 14
        renderscriptSupportModeEnabled true

        vectorDrawables.useSupportLibrary = true
    }
    dexOptions {
        javaMaxHeapSize "4g"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}
configurations.all {
    resolutionStrategy.eachDependency { DependencyResolveDetails details ->
        def requested = details.requested
        if (requested.group == 'com.android.support') {
            if (!requested.name.startsWith("multidex")) {
                details.useVersion '26.1.0'
            }
        }
    }
}
dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:26.1.0'
    compile 'com.android.support:support-v4:26.1.0'
    compile 'com.android.support:support-compat:26.1.0'
    compile 'com.android.support:cardview-v7:26.1.0'
    implementation 'com.android.support.constraint:constraint-layout:1.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'
    compile 'com.android.support:multidex:1.0.2'
    implementation "com.mikepenz:iconics-core:3.0.0@aar"
    implementation "com.mikepenz:iconics-views:3.0.0@aar"
    implementation 'com.mikepenz:google-material-typeface:3.0.1.2.original@aar'
    compile 'com.google.firebase:firebase-core:11.6.2'
    compile 'com.google.firebase:firebase-database:11.6.2'
    compile 'com.google.firebase:firebase-storage:11.6.2'
    compile 'com.google.firebase:firebase-auth:11.6.2'
    compile 'com.google.firebase:firebase-messaging:11.6.2'
    compile 'com.google.firebase:firebase-ads:11.6.2'
    compile 'com.google.firebase:firebase-firestore:11.6.2'
    compile 'com.google.firebase:firebase-crash:11.6.2'
    compile 'com.firebaseui:firebase-ui-database:3.1.0'
    compile 'de.hdodenhof:circleimageview:2.2.0'
    implementation 'com.github.bumptech.glide:glide:4.4.0'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.4.0'
    compile 'com.aurelhubert:ahbottomnavigation:2.1.0'
    compile 'com.vanniktech:emoji-twitter:0.5.1'
    compile 'com.github.jaychang0917:SimpleAuth:{latest_version}'


}
apply plugin: 'com.google.gms.google-services'
格拉德尔计划

buildscript {

    repositories {
        google()
        maven {
            url 'https://maven.google.com'
        }
        maven {
            url 'https://jitpack.io'
        }
        jcenter({url "http://jcenter.bintray.com/"})

        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.1'
        classpath 'com.google.gms:google-services:3.1.1'
    }
}

allprojects {
    repositories {
        google()
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
像Glide这样的依赖性运作良好。刚刚重启了我的android studio,面临着同样的问题


需要帮助:(

我从未遇到过这种语法

编译'com.github.jaychang0917:SimpleAuth:{latest_version}'

因此,我认为这是错误的,您想用实际版本替换
{}
,我想它只是自述文件中的一个示例。请尝试:

编译'com.github.jaychang0917:SimpleAuth:1.0.5'


(参考)

现在它显示了特定库的错误。你能告诉我问题在哪里吗?我刚刚修复了你的问题-现在你有了一个新问题&新问题:-)哦,好的。我将转载;