alann-maulana / image_compression_flutter

A Flutter extension to compress and resize the images (JPG, PNG, WEBP).
Other
16 stars 25 forks source link

Update your android project-build.gradle file #18

Open Raj9586 opened 1 month ago

Raj9586 commented 1 month ago

group 'id.co.eyro.image_compression_flutter' version '1.0-SNAPSHOT'

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

dependencies {
    classpath 'com.android.tools.build:gradle:8.1.3'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    classpath 'com.google.gms:google-services:4.3.15'

}

} apply plugin: 'com.android.library' apply plugin: 'kotlin-android' rootProject.allprojects { repositories { google() mavenCentral() } } android { namespace "id.co.eyro.image_compression_flutter" compileSdk 34

compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}

kotlinOptions {
    jvmTarget = '1.8'
}

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

defaultConfig {
    minSdkVersion 24
    targetSdkVersion 34
}

} dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" }

// group 'id.co.eyro.image_compression_flutter' // version '1.0-SNAPSHOT'

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

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

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

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

// android { // compileSdkVersion 30

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

// dependencies { // implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" // }

kketanssharma commented 1 week ago

facing same issue