gpt4 book ai didi

android - 在 Android Studio 中导入库 eneim/Toro

转载 作者:行者123 更新时间:2023-11-30 01:11:46 26 4
gpt4 key购买 nike

我正在尝试在 android studio 中导入“eneim/Toro”,但每次出现错误错误:无法在 com.jfrog.bintray.gradle.BintrayExtension_Decorated@39913ada 上找到属性“bintray_user”。

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
}

最佳答案

您是否能够在不尝试使用 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}"
}

关于android - 在 Android Studio 中导入库 eneim/Toro,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38366968/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com