【问题标题】:Can I use forked git repository to dependency by jitpack on android studio我可以在 android studio 上使用分叉的 git 存储库来依赖 jitpack
【发布时间】:2017-02-02 08:40:04
【问题描述】:

这里是 grale 文件。

build.gradle(项目)

buildscript {
repositories {
jcenter()
    maven { url 'https://maven.fabric.io/public'}
}
dependencies {
    classpath 'com.android.tools.build:gradle:2.2.3'
    classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'

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

    classpath 'io.fabric.tools:gradle:1.+'
    }
}

allprojects {
    repositories {
        jcenter()
        maven { url 'https://maven.fabric.io/public'}
        maven { url 'https://jitpack.io' }
    }
}

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

build.gradle(模块:app)

dependencies {
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'
})
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.google.android.gms:play-services:8.4.0'
compile 'com.android.support:support-v4:23.4.0'
compile 'com.google.code.gson:gson:2.8.0'
compile 'org.apache.maven:maven-artifact:3.3.9'

// https://mvnrepository.com/art.../commons-codec/commons-codec
compile group: 'commons-codec', name: 'commons-codec', version: '1.9'

compile('com.crashlytics.sdk.android:crashlytics:2.6.6@aar') {
transitive = true;
}
compile 'com.github.Kernelzero:androidtiffbitmapfactory:1.0'
// compile 'com.github.beyka:androidtiffbitmapfactory:0.9.1'
}

我确实在 jitpack 上注册了 forked git 项目

但我收到了错误日志。

无法解决:com.github.Kernerlzero:androidtiffbitmapfactory:1.0

怎么了?

【问题讨论】:

    标签: git gradle jitpack


    【解决方案1】:

    有几个问题

    1. 依赖应该是:com.github.Kernelzero:Android-TiffBitmapFactory:1.0

    2. 项目在该版本存在构建错误。更多详情在日志https://jitpack.io/com/github/Kernelzero/Android-TiffBitmapFactory/1.0/build.log

    要查找打开的新构建日志: https://jitpack.io/#Kernelzero/Android-TiffBitmapFactory

    【讨论】:

      猜你喜欢
      • 2019-07-01
      • 2015-04-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-03-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多