在Android Studio中导入库eneim / Toro

时间:2016-07-14 06:28:56

标签: android android-studio video video-streaming android-videoview

我正在尝试导入" eneim / Toro"在android studio中,但每次我收到错误错误:找不到属性' bintray_user'在com.jfrog.bintray.gradle.BintrayExtension_Decorated@39913ada。

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

2 个答案:

答案 0 :(得分:1)

您是否可以在不尝试使用Bintray的情况下导入库?

通过导入RC-2-0-0-4

,我成功导入了库,没有bintray
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}"
}

答案 1 :(得分:0)

感谢您的兴趣。您现在可以使用jcenter中的最新稳定版本。

免责声明:我是Toro lib的作者。