Back

Gradle build error while use appwrite with flutter 3.22.0

  • 0
  • Flutter
MingTiao
2 Apr, 2025, 03:40

I am integrating appwrite15.0.0 in Flutter 3.22 and the following error occurs while running Android:

TypeScript
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':device_info_plus:compileDebugJavaWithJavac'.
> Could not resolve all files for configuration ':device_info_plus:androidJdkImage'.
   > Failed to transform core-for-system-modules.jar to match attributes {artifactType=_internal_android_jdk_image, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
      > Execution failed for JdkImageTransform: C:\Users\EDY\AppData\Local\Android\Sdk\platforms\android-34\core-for-system-modules.jar.
         > Error while executing process D:\Workspace\IDE\Android\Android Studio\jbr\bin\jlink.exe with arguments {--module-path C:\Users\EDY\.gradle\caches\transforms-3\d9ee11a2fa4bb5bc88efa80b08ee81a1\transformed\output\temp\jmod --add-modules java.base --output C:\Users\EDY\.gradle\caches\transforms-3\d9ee11a2fa4bb5bc88efa80b08ee81a1\transformed\output\jdkImage --disable-plugin system-modules}

* 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 6s
Error: Gradle task assembleDebug failed with exit code 1

Exited (1).

And Gradle Scan Report is in the link: https://scans.gradle.com/s/ko7t6b7edfaxk/failure?expanded-stacktrace=WyIwIiwiMC0xIiwiMC0xLTIiXQ#1

More Info: Gradle version: 8.2.1 Java version: 17.0.12

Finally, I hope to get your help, thank you!!!

TL;DR
null
MingTiao
2 Apr, 2025, 03:42

This error occurred immediately after I added the appwrite dependency to the pubspec.yaml file and ran Android.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more