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

gradle 8 Not Working #51

Open
nousath opened this issue Sep 11, 2024 · 1 comment
Open

gradle 8 Not Working #51

nousath opened this issue Sep 11, 2024 · 1 comment

Comments

@nousath
Copy link

nousath commented Sep 11, 2024

Gradle 8 and above compatible issue

@AlbertoBergerone
Copy link

AlbertoBergerone commented Sep 20, 2024

Is the error related to the library not having a namespace specified in its build.gradle file?

  • What went wrong:
    A problem occurred configuring project ':call_log'.
    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.

Just find build.gradle inside /External Libraries/Flutter Plugins/call_log module and add this line:

android {
    namespace "sk.fourq.calllog" // Add this line
    ...
}

Then go to AndroidManifest (folder: call_log/android/src.main) and remove package="sk.fourq.calllog"

I'm having this problem with several libraries that haven't been updated for years

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants