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

[Bug] A problem occurred configuring project ':flutter_keyboard_visibility'. #608

Closed
tajjacob opened this issue Oct 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@tajjacob
Copy link

Steps to reproduce

Got this error when run on android after I migrate to latest gradle

Expected results

can run on android

Actual results

got error

Package Version

4.8.0

Platform

Android

Code sample

Code sample
[Paste your code here]

Logs

Logs
[   +3 ms] FAILURE: Build failed with an exception.
[   +1 ms] * What went wrong:
[        ] A problem occurred configuring project ':flutter_keyboard_visibility'.
[        ] > 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.

Screenshots or Video

Screenshots / Video demonstration [Upload media here]
@tajjacob tajjacob added the bug Something isn't working label Oct 25, 2024
@BunnyBuddy
Copy link

BunnyBuddy commented Nov 6, 2024

It's easily solvable try and use dependency_override with flutter_keyboard_visibility's latest version. If that doesn't help, add/replace this code in your project/android/build.gradle file,

allprojects {
    repositories {
        google()
        mavenCentral()
    }
    subprojects {
        afterEvaluate { project ->
            if (project.hasProperty('android')) {
                project.android {
                    if (namespace == null) {
                        namespace project.group
                    }
                }
            }
        }
    }
}

@clragon clragon closed this as completed Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants