2017-03-19 3 views
2

Ich verwende opentok Bibliothek, dieFehler: (126, 13) konnten nicht beheben: com.opentok.android:opentok-android-sdk:2.9.+

compile 'com.opentok.android:opentok-android-sdk:2.9.+' 

und in meiner build.gradle Datei ich habe

hinzugefügt
 maven { 
     url "http://tokbox.bintray.com/maven" 
    } 

aber nicht auf diesem Fehler

Error:(126, 13) Failed to resolve: com.opentok.android:opentok-android-sdk:2.9.+ 
    Show in File 
    Show in Project Structure dialog 

zu lösen, und als ich das Projekt zu reinigen versuchen dann ich erhalte diesen

Error:A problem occurred configuring project ':app'. 
    > Could not resolve all dependencies for configuration  ':app:_debugApkCopy'. 
    > Could not resolve com.opentok.android:opentok-android-sdk:2.9.+. 
    Required by: 
    project :app 
    > Could not resolve com.opentok.android:opentok-android-sdk:2.9.+. 
    > Failed to list versions for com.opentok.android:opentok-android-sdk. 
     > Unable to load Maven meta-data from http://dl.bintray.com/populov/maven/com/opentok/android/opentok-android-sdk/maven-metadata.xml. 
      > Could not GET 'http://dl.bintray.com/populov/maven/com/opentok/android/opentok-android-sdk/maven-metadata.xml'. 
       > Address family not supported by protocol family: connect 
    > Could not resolve com.opentok.android:opentok-android-sdk:2.9.+. 
    > Failed to list versions for com.opentok.android:opentok-android-sdk. 
     > Unable to load Maven meta-data from http://dl.bintray.com/lukaville/maven/com/opentok/android/opentok-android-sdk/maven-metadata.xml. 
      > Could not GET 'http://dl.bintray.com/lukaville/maven/com/opentok/android/opentok-android-sdk/maven-metadata.xml'. 
       > Address family not supported by protocol family: connect 
    > Could not resolve com.opentok.android:opentok-android-sdk:2.9.+. 
    > Failed to list versions for com.opentok.android:opentok-android-sdk. 
     > Unable to load Maven meta-data from http://tokbox.bintray.com/maven/com/opentok/android/opentok-android-sdk/maven-metadata.xml. 
      > Could not GET 'http://tokbox.bintray.com/maven/com/opentok/android/opentok-android-sdk/maven-metadata.xml'. 
       > Address family not supported by protocol family: connect 

bitte helfen Sie mir, dies zu lösen, danke.

+0

ich habe die Version von opentok-android-sdk auf 2.10. + Geändert, aber mein Problem nicht gelöst – iwayankit

Antwort

-1

löste ich diesen Fehler mit den folgenden Schritten

 Go to File>New>New Module 
    Select "Import .JAR/.AAR Package" and click next. 
    Enter the path to .aar file and click finish. 
    Go to File>Project Structure (Ctrl+Shift+Alt+S). 
    Under "Modules," in left menu, select "app." 
    Go to "Dependencies tab. 
    Click the green "+" in the upper right corner. 
    Select "Module Dependency" 
    Select the new module from the list. 

bitte gleiche wie .aar Datei die Abhängigkeit Version setzen.

Verwandte Themen