PhilipsHue / flutter_reactive_ble

Flutter library that handles BLE operations for multiple devices.
https://developers.meethue.com/
Other
661 stars 321 forks source link

A problem occurred evaluating project ':reactive_ble_mobile'. #839

Closed KonstantinidouCh closed 6 months ago

KonstantinidouCh commented 6 months ago

FAILURE: Build failed with an exception.

andrepura commented 6 months ago

i have the same issue here ` FAILURE: Build failed with an exception.

`

flutter_reactive_ble: ^5.3.0 compileSdkVersion 33 Flutter 3.16.9

andrepura commented 6 months ago

i fixed the problem by updating to newer versions in build.gradle (see: kotlin_version && build:gradle)

buildscript {
    ext.kotlin_version = '1.8.22'
    repositories {
        google()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:7.0.2'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

and updateing gradle-wrapper.properties in

distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip

could be possibile that newer gradle versions will work but i haven't tested it yet.

i also updated my sdk command line tools (they were out of sync with the android studio version)

KonstantinidouCh commented 6 months ago

i fixed the problem by updating to newer versions in build.gradle (see: kotlin_version && build:gradle)

buildscript {
    ext.kotlin_version = '1.8.22'
    repositories {
        google()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:7.0.2'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

and updateing gradle-wrapper.properties in

distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip

could be possibile that newer gradle versions will work but i haven't tested it yet.

i also updated my sdk command line tools (they were out of sync with the android studio version)

That seems to solve my problem! Thank you!