Skip to content

breaks fastlane screenshot taking #7

@arnotixe

Description

@arnotixe

I get the following error when running fastlane screenshots now. It used to work.

This is not the end of the world for me, because I have only 1 language and 5 screenshots in my app :)

I also do not know enough about this to tell if it's something I'm doing wrong, or if something is missing/can be rewritten for my InstrumentedTest to run together with this plugin…

Step: assembleAndroidTest

messages:

Transform artifact browser.aar (androidx.browser:browser:1.2.0) with DexingNoClasspathTransform
D8: Static interface methods are only supported starting with Android N (--min-api 24): androidx.browser.trusted.TrustedWebActivityDisplayMode androidx.browser.trusted.TrustedWebActivityDisplayMode.fromBundle(android.os.Bundle)

> Task :capacitor-dark-mode:mergeExtDexDebugAndroidTest FAILED

> Transform artifact classes.jar (project :capacitor-android) with DexingNoClasspathTransform
D8: Invoke-customs are only supported starting with Android O (--min-api 26)

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':capacitor-dark-mode:mergeExtDexDebugAndroidTest'.
> Could not resolve all files for configuration ':capacitor-dark-mode:debugAndroidTestRuntimeClasspath'.
   > Failed to transform artifact 'browser.aar (androidx.browser:browser:1.2.0)' to match attributes {artifactType=android-dex, dexing-enable-desugaring=false, dexing-is-debuggable=true, dexing-min-sdk=21, org.gradle.usage=java-runtime}.
      > Execution failed for DexingNoClasspathTransform: /home/arno/.gradle/caches/transforms-2/files-2.1/46270b71a0094b2d8ac8b47d8b23ca63/browser-1.2.0-runtime.jar.
         > Error while dexing.
           The dependency contains Java 8 bytecode. Please enable desugaring by adding the following to build.gradle
           android {
               compileOptions {
                   sourceCompatibility 1.8
                   targetCompatibility 1.8
               }
           }
           See https://developer.android.com/studio/write/java8-support.html for details. Alternatively, increase the minSdkVersion to 24 or above.


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 8s
194 actionable tasks: 8 executed, 186 up-to-date

And further up
Exit status of command '/home/arno/jobb/apps/delting/delting/delting/android/gradlew assembleAndroidTest -p .' was 1 instead of 0.

I'm happy to provide more details if needed, or re-run with newer branches!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions