Closed hadilq closed 5 years ago
Please use the Gradle forms for support questions https://discuss.gradle.org/
Ensure you use id("com.android.library")
instead of id("com.android.application")
for modules.
I am facing same problem as stated. Any solutions for it yet?
Try to convert
build.gradle
file of an Android library module tobuild.gradle.kts
failed with the following error:You can see the error is happened in this commit of LiveEvent's Android library while running
./gradlew clean check
.Expected Behavior
Configure an Android library as before.
Current Behavior
After migrating to Kotlin DSL the
implementation(project(":lib"))
of an Android app module cannot find the correct configuration of the library module. Alsoimplementation(project(":lib", configuration = "default"))
generates the following errorSteps to Reproduce (for bugs)
Checkout to this commit of LiveEvent's Android library, then running
./gradlew clean check
.Your Environment
$ uname -a Linux localhost.localdomain 4.20.8-100.fc28.x86_64 #1 SMP Wed Feb 13 13:09:13 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux