Ume*_*wat 5 android build build.gradle
我添加了一个新库。但我不知道为什么我无法构建该项目。
我收到 FAILURE: Build failed with an exception。
出了什么问题:配置项目 ':mavenirmeeting' 时出现问题。
org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: 无法在 com.android.build.gradle.tasks.ExtractAnnotations 类型的任务 ':mavenirmeeting:extractDebugAnnotations' 上找到参数 [] 的方法 deleteAllActions()。
尝试:使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。使用 --scan 运行以获得完整的见解。
构建摇篮
apply plugin: 'com.android.library'
apply plugin: 'me.tatarka.retrolambda'
android {
compileSdkVersion 28
android {
lintOptions {
abortOnError false
}
}
defaultConfig {
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
sourceSets {
main {
assets.srcDirs = ['assets']
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
// Google libraries
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
// other libraries
implementation 'se.emilsjolander:stickylistheaders:2.7.0'
implementation 'io.reactivex:rxjava:1.1.1'
}
Run Code Online (Sandbox Code Playgroud)
出了什么问题我不知道。我正在使用 Android Studio 3.4 版。
毕业典礼
#Tue Jul 02 13:27:58 IST 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
Run Code Online (Sandbox Code Playgroud)
小智 5
如果您在项目和Java8中使用RetroLambda,请删除 gradle.properties 文件中的 RetroLambda。
Java8支持lambda表达式。
https://developer.android.com/studio/write/java8-support?utm_source=android-studio
问候
| 归档时间: |
|
| 查看次数: |
2974 次 |
| 最近记录: |