Skip to content

Task :app:objectboxTransformDebugUnitTest fail on Kotlin 1.7 #1085

@chakflying

Description

@chakflying

Describe the bug
Looks like Kotlin 1.7 has some gradle changes which broke the task. The app builds fine otherwise.
Link to relevant (?) Kotlin compatibility guide entry here.

Error shown on build:

java.lang.NoSuchMethodError: 'java.io.File org.jetbrains.kotlin.gradle.tasks.KotlinCompile.getDestinationDir()'
	at io.objectbox.gradle.transform.ObjectBoxAndroidTransform$Registration$addDestinationDirOfKotlinCompile$1.transform(ObjectBoxAndroidTransform.kt:164)

Basic info (please complete the following information):

  • ObjectBox version (are you using the latest version?): 3.2.0
  • Reproducibility: always

To Reproduce
Steps to reproduce the behavior:

  1. Upgrade app to Kotlin 1.7
  2. Run Unit Test
  3. See error

Dependencies

    debugImplementation "io.objectbox:objectbox-android-objectbrowser:$objectboxVersion"
    releaseImplementation "io.objectbox:objectbox-android:$objectboxVersion"
    kapt("io.objectbox:objectbox-processor:$objectboxVersion")
    implementation("io.objectbox:objectbox-kotlin:$objectboxVersion")

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions