获取android studio 1.0中的retrolambda错误
我在安卓工作室1.0工作 gradle文件显示此错误: 任务“:app:compileRetroLambdaDebug”的执行失败获取android studio 1.0中的retrolambda错误,android,android-studio,gradle,retrolambda,Android,Android Studio,Gradle,Retrolambda,我在安卓工作室1.0工作 gradle文件显示此错误: 任务“:app:compileRetroLambdaDebug”的执行失败 apply plugin: 'android' apply plugin: 'retrolambda' android { compileSdkVersion 21 buildToolsVersion '19.1.0' defaultConfig { applicationId "xxxxxxxx" minSdkVersion 10 tar
apply plugin: 'android'
apply plugin: 'retrolambda'
android {
compileSdkVersion 21
buildToolsVersion '19.1.0'
defaultConfig {
applicationId "xxxxxxxx"
minSdkVersion 10
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:support-v4:21.0.2'
compile 'com.android.support:appcompat-v7:21.0.2'
compile 'io.reactivex:rxandroid:0.23.0'
}
//顶级生成文件,您可以在其中添加所有子项目/模块通用的配置选项
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.0-rc1'
classpath 'me.tatarka:gradle-retrolambda:2.4.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
mavenCentral()
}
}
在gradle文件中还需要做哪些更改。请提出一些建议…在eclipse中更新依赖项时,我遇到了类似的错误。尝试更新到最新的插件版本,并将retrolambda更改为me.tatarka.retrolambda,因为retrolambda插件已被弃用,不久将被删除。至少这是我纠正错误的方法
apply plugin: 'me.tatarka.retrolambda'
apply plugin: 'android'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'me.tatarka:gradle-retrolambda:2.5.0'
classpath 'com.android.tools.build:gradle:1.0.1'
}
}
...
请提供您收到的错误消息的详细信息。我正在windows上使用studio,它给我的唯一错误是app:compileRetroLambdaDebug。