Back

Execution failed for task ':path_provider_android:compileDebugJavaWithJavac'.

  • 0
  • Android
  • Flutter
  • Cloud
Patrick
26 Nov, 2024, 10:03

I have compiled the example Realtime code from https://appwrite.io/blog/post/appwrite-realtime-for-flutter

It compiles and works perfectly if the target platform is Chrome it works fine, but if I try to compile for Android... I get the following

`Execution failed for task ':path_provider_android:compileDebugJavaWithJavac'.

Could not resolve all files for configuration ':path_provider_android: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\P.Clark\AppData\Local\Android\sdk\platforms\android-34\core-for-system-modules.jar. Error while executing process C:\Program Files\Android\Android Studio\jbr\bin\jlink.exe with arguments {--module-path C:\Users\P.Clarkgradle\caches\transforms-3\4a46fc89ed5f9adfe3afebf74eb8bfeb\transformed\output\temp\jmod --add-modules java.base --output C:\Users\P.Clarkgradle\caches\transforms-3\4a46fc89ed5f9adfe3afebf74eb8bfeb\transformed\output\jdkImage --disable-plugin system-modules}`

TL;DR
Developers are facing an issue where they are unable to compile their Flutter Realtime code for Android due to an error related to 'path_provider_android:compileDebugJavaWithJavac'. The error message specifically mentions a problem with 'core-for-system-modules.jar'. The solution might involve checking the Java Development Kit and Android SDK configurations, as well as ensuring proper paths and modules are set up correctly in the Gradle build.
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