Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid build configuration #40

Open
Uzenkov opened this issue Feb 20, 2024 · 1 comment
Open

Invalid build configuration #40

Uzenkov opened this issue Feb 20, 2024 · 1 comment

Comments

@Uzenkov
Copy link

Uzenkov commented Feb 20, 2024

I am encountering an exception when trying to run the app on Android.

Here are the steps:

  1. flutter create app
  2. add a package via git
  3. flutter run

And here is an exception:

ERROR:D8: Invalid build configuration. Attempt to create a global synthetic for 'Record desugaring' without a global-synthetics consumer.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeExtDexDebug'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform tunnel-1.0.20230706.aar (com.wireguard.android:tunnel:1.0.20230706) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=21, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Execution failed for DexingWithClasspathTransform: /Users/uzenkov/.gradle/caches/transforms-3/3ba074555f0a82d8076ceaa016a8af1d/transformed/jetified-tunnel-1.0.20230706-runtime.jar.
         > Error while dexing.

UPDATE

I've found out that the problem occurs with the latest com.wireguard.android:tunnel:1.0.20230706 version, but it works with the previous one: 1.0.20230427.

@talkbiz
Copy link

talkbiz commented Mar 22, 2024

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants