Skip to content

Jetifier Issues with cucumber-java dependency #41

@childnode

Description

@childnode

for some circumstances .. in some cases we can't figure out what is different in setup we get

 > Could not resolve all artifacts for configuration ':app:debugAndroidTestCompileClasspath'.
    > Failed to transform artifact 'cucumber-java.jar (io.cucumber:cucumber-java:4.4.0)' to match attributes {artifactType=android-classes, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
       > Execution failed for JetifyTransform: /project/.gradle/caches/modules-2/files-2.1/io.cucumber/cucumber-java/4.4.0/f2a407a1159ca63271da836ca9c2b8db592bec9e/cucumber-java-4.4.0.jar.
          > Failed to transform '/project/.gradle/caches/modules-2/files-2.1/io.cucumber/cucumber-java/4.4.0/f2a407a1159ca63271da836ca9c2b8db592bec9e/cucumber-java-4.4.0.jar' using Jetifier. Reason: Malformed input or input contains unmappable characters: cucumber/api/java/kn/?????.class. (Run with --stacktrace for more details.)

for

android {
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    defaultConfig {
        applicationId "com.deutschebahn.bahnbonus"
        versionCode generateVersionCode(false)
        versionName generateVersionName()

        logger.info("using buildToolsVersion $buildToolsVersion defined by build plugin")

        minSdkVersion 21
        targetSdkVersion 28
        compileSdkVersion 28
    }
}
/// …
dependencies {
    androidTestImplementation "io.cucumber:cucumber-android:4.4.0"
}
android.useAndroidX=true
android.enableJetifier=true

any glue what is going wrong here? and yes, we need jetifier ;/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions