How to remove Kotlin Support from Flutter App?

1,555

According to your question, there might be many reasons behind...
Check out this Stack Overflow Solution if this can work.
Apart from this, To remove Kotlin support you can check your Gradle for some lines below..

buildscript {
    ext.kotlin_version = '1.2.71'
    ...

    dependencies {
        ...
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}
...
apply plugin: 'kotlin-android'
...
android{
    ...
    sourceSets {
        main.java.srcDirs += 'src/main/kotlin'
    }
    ...
}
dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    ...
}

Delete all of these above to remove kotlin support in your project.

Share:
1,555
Gagandeep Gambhir
Author by

Gagandeep Gambhir

I'm React, React Native, Angular and Laravel developer with extensive experience in building high-quality websites and mobile apps. I like working on projects with a team that cares about creating beautiful and usable applications. It's important to me to build long-term relationships with my clients, so I'm primarily looking for long term projects. I'm flexible with my working hours and am happy to work closely with any existing freelancers you work with.

Updated on December 17, 2022

Comments

  • Gagandeep Gambhir
    Gagandeep Gambhir over 1 year

    Created a new Flutter project with Kotlin support on Android Studio and it is giving the following error on running the app:-

    • What went wrong: Execution failed for task ':app:compileDebugKotlin'.

    Now I just want to remove the Kotlin support from my project, please suggest the steps?