flutter_login icon indicating copy to clipboard operation
flutter_login copied to clipboard

Update to Gradle 8.1.1

Open mrcklwhn opened this issue 1 year ago • 2 comments

After updating to Gradle 8.1.1 the Flutter Login Plugin doenst work anymore.

My build.gradle:

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

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

FAILURE: Build failed with an exception.

  • What went wrong: A problem occurred configuring project ':libphonenumber_plugin'.

Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl. Namespace not specified. Specify a namespace in the module's build file. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.

Looks like libphonenumber_plugin is a dependency ths isnt updated to Gradle 8.1.1 jet.

Please fix this ASAP.

mrcklwhn avatar Sep 14 '23 20:09 mrcklwhn

What worked for me is that I deleted the build folder then issued

flutter create .

in the project directory.

xuniluser avatar Oct 21 '23 22:10 xuniluser

Has anyone figured out a workaround for this issue? I tried to delete the build folder, ran flutter create . as well as the suggestion here by the package maintainer but to no prevail.

ZakBrinlee avatar Feb 03 '24 20:02 ZakBrinlee