2017-12-11 16 views
1

すべてがうまくいきました。その後、社会的なログインヘルパーライブラリを追加しようとしましたが、この問題に初めて直面しました。解決に失敗しました:com.github

グーグルやアンドロイドからのあらゆる依存関係は正常に動作します。

しかし、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:[email protected]" 
    implementation "com.mikepenz:iconics-views:3.0.[email protected]" 
    implementation 'com.mikepenz:google-material-typeface:[email protected]' 
    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' 

プロジェクトのGradle、グライドなどの

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 
} 

依存関係はうまく働いていました。私のアンドロイドスタジオを再起動し、同じ問題に直面しています。

ので、私はそれが間違っていると思う私はこの構文を越え

compile 'com.github.jaychang0917:SimpleAuth:{latest_version}'

に来たことがありません:(

答えて

1

を助け、あなたが実際のバージョンと{}が、私はそれがあったと想像することを交換する必要があります。そこREADMEの例のように試してみてください。

compile 'com.github.jaychang0917:SimpleAuth:1.0.5'

(参照https://github.com/jaychang0917/SimpleAuth/releases

+0

これで、その特定のライブラリのエラーが表示されます。問題がどこにあるのか教えていただけますか? – Kim

+0

私はちょうどあなたの問題を修正しました - 今あなたは新しい問題と新しい質問があります:-) – Blundell

+0

Ohkay。私は再投稿する; _; – Kim

関連する問題