gpt4 book ai didi

android - Retrolambda 错误 :Cannot get property 'destinationDir' on null object

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:35:02 25 4
gpt4 key购买 nike

我正在尝试在我的应用程序中使用 retrolambda,但我遇到了问题

build.gradle 项目

buildscript {
repositories {
jcenter()
mavenLocal()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.3'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath 'me.tatarka:gradle-retrolambda:3.2.5'

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

allprojects {
repositories {
jcenter()
mavenLocal()
}

}

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

build.gradle 应用

apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
apply plugin: 'me.tatarka.retrolambda'


android {
compileSdkVersion 23
buildToolsVersion "24.0.1"

defaultConfig {
applicationId "psystem.co.reaya"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
jackOptions {
enabled true
}

}
dexOptions {
preDexLibraries false
javaMaxHeapSize "4g"
incremental true

}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

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

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.google.code.gson:gson:2.4'
retrolambdaConfig 'net.orfjackal.retrolambda:retrolambda:+'
compile 'com.android.support:multidex:1.0.1'
}



my tries to fix the issue remove jack options , I got this error `org.gradle.execution.TaskSelectionException: Task ',' not found in root project 'Reaya'.`

任何人都可以帮助我解决我的问题

谢谢

最佳答案

1.将Android studio升级到2.1或更高版本;2.删除“应用插件:'me.tatarka.retrolambda'”试试吧!

关于android - Retrolambda 错误 :Cannot get property 'destinationDir' on null object,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39318562/

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