java – 为JellyRefreshLayout模块导入新的Android模块失败

我正在导入JellyRefreshLayout作为模块(对于一些更新)

检查此链接
https://github.com/allan1st/JellyRefreshLayout

但我总是得到这个毕业生的错误

信息:Gradle任务[:app:generateDebugSources,

:app:mockableAndroidJar,:app:prepareDebugUnitTestDependencies,:app:generateDebugAndroidTestSources,:jellyrefresh:generateDebugSources,:jellyrefresh:mockableAndroidJar,:jellyrefresh:prepareDebugUnitTestDependencies,:jellyrefresh:generateDebugAndroidTestSources]
extractDebugAnnotations is incompatible with java 8 sources and has been disabled.
extractReleaseAnnotations is incompatible with java 8 sources and has been disabled.
:jellyrefresh:incrementalReleaseJavaCompilationSafeguard UP-TO-DATE
:jellyrefresh:compileReleaseJavaWithJavac UP-TO-DATE
:jellyrefresh:compileRetrolambdaRelease Failed

Error:Execution Failed for task ':jellyrefresh:compileRetrolambdaRelease'.
> Could not resolve all dependencies for configuration ':jellyrefresh:retrolambdaConfig'.
   > Could not resolve net.orfjackal.retrolambda:retrolambda:2.0.3.
     required by:
         JellyRefreshLayout-master:jellyrefresh:unspecified
      > No cached version of net.orfjackal.retrolambda:retrolambda:2.0.3 available for offline mode.
      > No cached version of net.orfjackal.retrolambda:retrolambda:2.0.3 available for offline mode.

项目毕业生建设:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.1.3'
        classpath 'me.tatarka:gradle-retrolambda:3.2.0'
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

应用程序毕业:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "uk.co.imallan.jellyrefreshlayout"
        minSdkVersion 19
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro'
        }
    }
}


dependencies {
    compile fileTree(dir: 'libs',include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:23.3.0'
    compile project(":jellyrefresh")
}

图书馆模特:

repositories {
    mavenCentral()
}

apply plugin: 'com.android.library'
apply plugin: 'me.tatarka.retrolambda'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        minSdkVersion 19
        targetSdkVersion 22
        versionCode 1
        versionName "1.0"
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

dependencies {
    compile fileTree(dir: 'libs',include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:23.3.0'
}

注意:我的项目JDK选择和默认JDK是:
/Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home

请指教 !
谢谢 !

解决方法

现在解决

问题是:internal_impl.jar有时不在retronambda类路径上.
因为以下之一:

因为在第二次执行中可能会更新依赖关系.
>也许这是Gradle Android插件错误.

解决方案是:
我运行毕业生清洁和组装在命令从毕业生终端同步毕业:

./gradlew clean assembleDebug

从Gradle终端.

请检查这个有用的对话:

https://github.com/evant/gradle-retrolambda/issues/105

相关文章

以下为个人理解,如错请评 CE: 凭据加密 (CE) 存储空间, 实际路径/data/user_ce/ DE: 设备加密 (DE) 存...
转载来源:https://blog.csdn.net/yfbdxz/article/details/114702144 用EventLog.writeEvent打的日志(或...
事件分发机制详解 一、基础知识介绍 1、经常用的事件有:MotionEvent.ACTION_DOWN,MotionEvent.ACTION...
又是好久没有写博客了,一直都比较忙,最近终于有时间沉淀和整理一下最近学到和解决的一些问题。 最近进...
Android性能优化——之控件的优化 前面讲了图像的优化,接下来分享一下控件的性能优化,这里主要是面向...
android的开源库是用来在android上显示gif图片的。我在网上查了一下,大家说这个框架写的不错,加载大的...