Skip to content
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

Please add kotlinOptions {jvmTarget = '1.8'} to the build.gradle file #225

Closed
Valent1 opened this issue Dec 2, 2023 · 1 comment · Fixed by #231
Closed

Please add kotlinOptions {jvmTarget = '1.8'} to the build.gradle file #225

Valent1 opened this issue Dec 2, 2023 · 1 comment · Fixed by #231

Comments

@Valent1
Copy link

Valent1 commented Dec 2, 2023

Please add:

kotlinOptions {
    jvmTarget = '1.8'
}

to the build.gradle file.

See this related issue on a separate package for details:

QuisApp/flutter_contacts#142

Below is the modified build.gradle file:

group 'io.github.zeshuaro.google_api_headers'
version '1.0-SNAPSHOT'

buildscript {
    ext.kotlin_version = '1.8.22'
    repositories {
        google()
        mavenCentral()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:7.4.2'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

rootProject.allprojects {
    repositories {
        google()
        mavenCentral()
    }
}

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

android {
    // Conditional for compatibility with AGP <4.2.
    if (project.android.hasProperty("namespace")) {
      namespace 'io.github.zeshuaro.google_api_headers'
    }
    compileSdkVersion 33

    kotlinOptions {
        jvmTarget = '1.8'
    }

    sourceSets {
        main.java.srcDirs += 'src/main/kotlin'
    }
    defaultConfig {
        minSdkVersion 23
    }
}

dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
}
@zeshuaro
Copy link
Owner

🎉 This issue has been resolved in version 3.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants