Ionic run cmd from ext fails with Error, Run cmd from Android studio Runs #7010
Replies: 3 comments 2 replies
-
Any luck? I am having the same issue. #7053 |
Beta Was this translation helpful? Give feedback.
0 replies
-
for using jdk 21 you need to use gradle 8.4, which is not officially supported for android development yet |
Beta Was this translation helpful? Give feedback.
2 replies
-
The issue was using JDK 21 which is unsupported by capacitor, you must use JDK 17 or lower with Capacitor5 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a vue app using VScode ide that i am using capacitor to make a hybrid app. I set it up tper instructions, but when trying to execute the run cmd from vscode i receive this
What went wrong:
Execution failed for task ':capacitor-android:compileDebugJavaWithJavac'.
> Could not resolve all files for configuration ':capacitor-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\wills\AppData\Local\Android\Sdk\platforms\android-33\core-for-system-modules.jar.
> Error while executing process C:\Program Files\Java\jdk-21\bin\jlink.exe with arguments {--module-path C:\Users\wills.gradle\caches\transforms-3\4f7d45b6a0a60abeff674c6e3ec3239c\transformed\output\temp\jmod --add-modules java.base --output C:\Users\wills.gradle\caches\transforms-3\4f7d45b6a0a60abeff674c6e3ec3239c\transformed\output\jdkImage --disable-plugin system-modules}
[error] npx cap run android --target=emulator-5554 --external --no-sync --public-host=172.25.0.1 Failed
[error] Android Failed.
but when executing the run command from the linked android studio build it runs. Any clue as to why?
Summary : npx cap run android fails with above error, run app cmd in android studio runs successfully
Beta Was this translation helpful? Give feedback.
All reactions