2017-02-06 6 views
0

Ich versuche, Clarifai API in meinem Android-Projekt zu importieren, aber es gibt den folgenden Fehler: Fehler: (28, 13) Fehler beim Auflösen: com.clarai.clarifai-api2: android : 2.0.2Kann Clarifai API nicht in Android importieren

project.gradle:

// Top-level build file where you can add configuration options common to all sub-projects/modules. 

buildscript { 
    repositories { 
     jcenter() 
    } 
    dependencies { 
     classpath 'com.android.tools.build:gradle:2.2.2' 

     // NOTE: Do not place your application dependencies here; they belong 
     // in the individual module build.gradle files 
    } 
} 

allprojects { 
    repositories { 
     jcenter() 
     maven { url "https://jitpack.io" } 
    } 
} 

task clean(type: Delete) { 
    delete rootProject.buildDir 
} 

app.gradle:

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 25 
    buildToolsVersion "25.0.0" 
    defaultConfig { 
     applicationId "ir.codinglab.objectrecognizer" 
     minSdkVersion 15 
     targetSdkVersion 25 
     versionCode 1 
     versionName "1.0" 
     testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
    lintOptions { 

     lintConfig rootProject.file('gradle/lint.xml') 

    } 
} 

dependencies { 
    compile 'com.github.markushi:circlebutton:1.1' 
    compile 'com.clarifai.clarifai-api2:android:2.0.2' 
     compile fileTree(dir: 'libs', include: ['*.jar']) 
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 
     exclude group: 'com.android.support', module: 'support-annotations' 
    }) 
    testCompile 'junit:junit:4.12' 
} 

ich muss anmerken, dass ich irgendwelche Probleme haben keine anderen Bibliotheken mit dem Import. Vielen Dank im Voraus.

Antwort

0

Die von Ihnen eingegebene Bibliothek ist falsch. Dies ist die richtige -

compile 'com.clarifai.clarifai-api2:core:2.2.3' 
+0

Kennen Sie die Version für Android-Bibliothek? – Mehrdad1373

Verwandte Themen