medyas / flutter_qiblah

Flutter Qiblah is a plugin that allows you to display Qiblah direction in you app with support for both Android and iOS.
https://pub.dev/packages/flutter_qiblah
MIT License
127 stars 91 forks source link

Build failed with an exception. #50

Closed ruhul080 closed 2 months ago

ruhul080 commented 2 months ago

Execution failed for task ':flutter_qiblah:compileDebugKotlin'.

Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (1.8) and 'compileDebugKotlin' (17).

Probably you need to support kotlin >= 1.8

Newer version does not support.

medyas commented 2 months ago

@ruhul080 The package supports Java 17. So you need to update your project to support it.

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_17
        targetCompatibility JavaVersion.VERSION_17
    }

    kotlinOptions {
        jvmTarget = '17'
    }