Skip to content

[Bug]: Freshly created Ionic Vue project cannot be run on Android #7847

@Albermonte

Description

@Albermonte

Capacitor Version

💊   Capacitor Doctor  💊 

Latest Dependencies:

  @capacitor/cli: 7.0.1
  @capacitor/core: 7.0.1
  @capacitor/android: 7.0.1
  @capacitor/ios: 7.0.1

Installed Dependencies:

  @capacitor/ios: not installed
  @capacitor/cli: 7.0.1
  @capacitor/core: 7.0.1
  @capacitor/android: 7.0.1

[success] Android looking great! 👌

Other API Details

npm --version
10.9.0



node --version
v22.11.0


macOS Sequoia 15.2

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

Cannot run the android build, this error shows in console:

        [Incubating] Problems report is available at:
        file:///Users/albermonte/proyectos/ionic-demo/android/build/reports/problems/problems-report.html
        
        FAILURE: Build failed with an exception.
        
        * What went wrong:
        Execution failed for task ':capacitor-android:compileDebugJavaWithJavac'.
        > error: invalid source release: 21

Expected Behavior

It only runs on iOS but not on Android

Project Reproduction

https://github.com/Albermonte/capacitor-v7-error

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions