carsten-klaffke / send-intent

Repository for send-intent Capacitor plugin
MIT License
106 stars 12 forks source link

Cant run "npx cap run android" #94

Closed soRailicious closed 4 weeks ago

soRailicious commented 1 month ago

After npm install send-intend and npx cap sync wich works perfectly

i cant run: npx cap run android and get the following error.

`× Running Gradle build - failed! [error] FAILURE: Build failed with an exception.

    * Where:
    Settings file 'C:\Users\...\Workspaces\app.myapp.io\android\settings.gradle' line: 5

    * What went wrong:
    A problem occurred evaluating settings 'android'.
    > BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major
    version 66

    * 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 562ms`

in the generated "capacitor.settings.gradle" stands in line 5 and 6

// DO NOT EDIT THIS FILE! IT IS GENERATED EACH TIME "capacitor update" IS RUN
include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor')

include ':send-intent'
project(':send-intent').projectDir = new File('../node_modules/send-intent/android')

in capacitor.build.gradle

apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle"
dependencies {
    implementation project(':send-intent')

}

what s wrong? :S