2016-07-14 2 views
1

Я пытаюсь импортировать «eneim/Toro» в андроид-студию, но каждый раз, когда я получаю ошибку Ошибка: Не удалось найти свойство «bintray_user» на com.jfrog.bintray.gradle. BintrayExtension_Decorated @ 39913ada.Импорт библиотеки eneim/Toro в Android Studio

build.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.1.2' 

    classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.5.4' 
    classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3' 
    classpath 'com.novoda:bintray-release:0.3.5' 
    // NOTE: Do not place your application dependencies here; they belong 
    // in the individual module build.gradle files 
    } 
    apply plugin: 'bintray-release' 
} 

ext { 
    libraryVersion = '2.0.0' 
    androidVersion = 24 
    buildToolVersion = '24.0.0' 
    supportLibraryVersion = '24.0.0' 

    minSupportSDKVersion = 16 
} 

allprojects { 
    repositories { 
    jcenter() 

    maven { url "https://jitpack.io" } 
    maven { 
     url "https://jcenter.bintray.com" 
    } 
    } 

    tasks.withType(Javadoc) { 
    options.addStringOption('Xdoclint:none', '-quiet') 
    options.addStringOption('encoding', 'UTF-8') 
    } 

    configurations { 
    javadocDeps 
    } 
} 

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

добавлено build.gradle в редактируемый вопрос – Shahbaz

ответ

1

Вы были в состоянии импортировать библиотеку без также пытается использовать Bintray?

Я имел успех импортируя библиотеки, без bintray, путем импорта RC-2-0-0-4

ext { 
    toro_latest_version = '2.0.0-RC4' 
} 

dependencies { 
compile "im.ene.lab:toro-player:${toro_latest_version}" 
compile "im.ene.lab:toro:${toro_latest_version}" 
compile "im.ene.lab:toro-ext:${toro_latest_version}" 
} 

Вот полная конфигурация я использую в данном конкретном случае:

ext { 
    toro_latest_version = '2.0.0-RC4' 
} 

dependencies { 
compile fileTree(dir: 'libs', include: ['*.jar']) 
compile 'com.android.support:multidex:1.0.0' 
compile 'com.android.support:appcompat-v7:23.2.1' 
compile 'com.github.bumptech.glide:glide:3.6.1' 
compile 'com.android.support:design:23.2.1' 
compile 'com.yqritc:recyclerview-flexibledivider:1.4.0' 
compile 'com.sprylab.android.texturevideoview:texturevideoview:1.0.2' 

compile "im.ene.lab:toro-player:${toro_latest_version}" 
compile "im.ene.lab:toro:${toro_latest_version}" 
compile "im.ene.lab:toro-ext:${toro_latest_version}" 
} 
0

спасибо за интерес. Теперь вы можете использовать самую последнюю стабильную версию из jcenter.

Отказ от ответственности: Я являюсь автором Toro lib.

Смежные вопросы