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

Error when building apk concurrent-futures-1.2.0.jar #3

Open
JSBmanD opened this issue Nov 26, 2024 · 3 comments
Open

Error when building apk concurrent-futures-1.2.0.jar #3

JSBmanD opened this issue Nov 26, 2024 · 3 comments

Comments

@JSBmanD
Copy link

JSBmanD commented Nov 26, 2024

I have openjdk 17.0.11 and flutter 3.24.1.
Just when I add dependency on this package build for android fails with error

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 concurrent-futures-1.2.0.jar (androidx.concurrent:concurrent-futures:1.2.0) 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=29, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.jvm.version=8, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Execution failed for DexingNoClasspathTransform: /Users/dmitry/.gradle/caches/transforms-4/f14aa3b685865f4104801139558d64b8/transformed/jetified-concurrent-futures-1.2.0.jar.
         > Unable to read jar file /Users/dmitry/.gradle/caches/transforms-4/f14aa3b685865f4104801139558d64b8/transformed/jetified-concurrent-futures-1.2.0.jar
@JSBmanD
Copy link
Author

JSBmanD commented Nov 26, 2024

I've changed kt version to 2.0.10 and started getting this error
ERROR:/Users/dmitry/.gradle/caches/transforms-4/f14aa3b685865f4104801139558d64b8/transformed/jetified-concurrent-futures-1.2.0.jar: D8: java.lang.NullPointerException: Cannot invoke "String.length()" because "" is null

I've removed non-ktx deps and downgraded concurrent-futures-ktx:1.2.0 to 1.1.0 so it works with this config

@orkun1675
Copy link
Contributor

Hi @JSBmanD does that mean the plugin compiles for you now?

Can you say more? Did you need to modify the dependencies here to get it to work?

@JSBmanD
Copy link
Author

JSBmanD commented Nov 27, 2024

@orkun1675 hi, to run the app with package i've modified deps, yes - JSBmanD@7789947

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