我可以使用分叉的 git 存储库来依赖 android studio 上的 jitpack 吗?



这里是grale文件。

build.gradle (Project)

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 上注册了分叉的 git 项目

但我收到了错误日志。

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

怎么了?

有几个问题

  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

最新更新