2017-12-11 2 views
1

Alles funktionierte gut, Dann habe ich versucht, einige soziale Login-Helfer-Bibliothek und konfrontiert dieses Problem zum ersten Mal, Dann habe ich es zurück und das Problem ist immer noch da.Konnte nicht gelöst werden: com.github

Jede Abhängigkeit von Google oder Android funktioniert gut.

Aber jede Abhängigkeit, die mit com.github beginnt, schlägt fehl.

App 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:[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' 

Projekt 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 
} 

Abhängigkeit wie Glide funktionierten gut. Habe gerade mein Android-Studio neu gestartet und habe dieselben Probleme mit ihnen.

Sie brauchen Hilfe :(

Antwort

1

Ich habe noch nie

über diese Syntax kommen

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

so glaube ich es falsch ist, möchten Sie ersetzen, dass {} mit der aktuellen Version, ich denke, es war . gerade dort als Beispiel in der Readme versuchen:

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

(Referenz https://github.com/jaychang0917/SimpleAuth/releases)

+0

Jetzt zeigt es Fehler für diese bestimmte Bibliothek. Können Sie mir sagen, wo das Problem liegt? – Kim

+0

Ich habe gerade dein Problem behoben - jetzt hast du ein neues Problem und eine neue Frage :-) – Blundell

+0

Ohkay dann. Ich werde umschreiben; _; – Kim

Verwandte Themen