-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[Bug]: Freshly created Ionic Vue project cannot be run on Android #7847
Comments
Are you using Android Studio Ladybug? |
|
Btw, in Capactior docs there's a typo mentioning "Capacitor 6" instead of 7 |
Your sample app is working fine for me. |
Just tried running with Android Studio and it worked after "Gradle Sync" and "Clean Project", but still not working when running using |
Capacitor 7 requires JDK 21, Android Studio Ladybug is distributed with JDK 21 included, so it works out of the box, but for What I do is to configure |
Thank you @jcesarmobile, that did the trick. I would suggest to include that in the docs or in the Upgrade Guide for users like me that used Capacitor 6 or older |
It's mentioned already on the upgrade Android Studio step |
I meant the |
so do I need to install Java 21 in order to run my app I created React Project but facing same issue with this npx cap run android but when I try with android studio it install the APK through ADB
|
it seems the current gradle is not support by JAVA 21 |
I have install Java 21 and it working but I want to know what if I want to use java 17 |
I have install java 21 , and I can not build ionic capacitor 7 , so I have to downgrade to 6 and downgrade to version 17 , as the gradle 8.12 can work well with java 17 I have just complete this package and it is fine |
I had 17 but I removed it and then I install Java 21 also set JAVA_HOME and then simply created a react project and I just follow these Steps.
If any one know a way to use Java 17 please provide the steps |
Capacitor Version
Other API Details
Platforms Affected
Current Behavior
Cannot run the android build, this error shows in console:
Expected Behavior
It only runs on iOS but not on Android
Project Reproduction
https://github.com/Albermonte/capacitor-v7-error
Additional Information
No response
The text was updated successfully, but these errors were encountered: