cucumber / cucumber-android

Android support for Cucumber-JVM
MIT License
135 stars 62 forks source link

Jetifier Issues with cucumber-java dependency #41

Closed childnode closed 4 years ago

childnode commented 4 years ago

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 ;/

mpkorstanje commented 4 years ago

So cucumber/api/java/kn/?????.class is the Kannada version of the @Given annotation (@ನೀಡಿದ). You may want to investigate if your OS and file system combination can support unicode file names properly.

cermakcz commented 4 years ago

@childnode were you able to solve this issue? I'm currently facing the same thing. Interestingly, it works on our local PCs, but doesn't on our CI agents.

childnode commented 4 years ago

nope, not directly but the hint of @mpkorstanje looks like the right direction. Colleague of mine is actually checking underlaying redhat based build container images we recently had changes in pipeline, not s cucumber bug to me .. #close