Kotlin 1.2.50 asks for baseFeatureInfoDir

2019-03-24 14:23发布

问题:

When I switch in an Android project with

classpath 'com.android.tools.build:gradle:3.2.0-alpha18'

to

classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.50"

I run into

What went wrong:

Some problems were found with the configuration of task ':detector:kaptDebugKotlin'.

Directory '~/project/build/intermediates/feature_data_binding_base_feature_info/debug/dataBindingExportFeaturePackageIdsDebug/out' specified for property 'annotationProcessorOptionProviders$kotlin_gradle_plugin.$0.$0.baseFeatureInfoDir' does not exist. Directory '~/project/build/intermediates/feature_data_binding_base_feature_info/debug/dataBindingExportFeaturePackageIdsDebug/out' specified for property 'databinding.baseFeatureInfoDir' does not exist.

with classpath 'com.android.tools.build:gradle:3.1.3' it works properly

回答1:

This issue will be fixed in Android Gradle plugin 3.2.0-beta02

Change-Id: I7b7977845e5dee13240f2b0422ccc270513cade9