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

A problem occurred configuring project ':flutter_compass'. #114

Closed
taothai opened this issue May 5, 2024 · 8 comments
Closed

A problem occurred configuring project ':flutter_compass'. #114

taothai opened this issue May 5, 2024 · 8 comments
Labels

Comments

@taothai
Copy link

taothai commented May 5, 2024

FAILURE: Build failed with an exception.

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

     If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 2s
Error: Gradle task assembleDebug failed with exit code 1
@tlserver
Copy link
Owner

tlserver commented May 9, 2024

Hi. Can you provide a detailed reproduce step?

@taothai
Copy link
Author

taothai commented May 9, 2024

Hi. Can you provide a detailed reproduce step?

thank for my reply

this show error when update Gradle to version 8.x
but down version Gradle to version 7.x It'work

@AlceoMazza
Copy link

AlceoMazza commented May 13, 2024

This is caused by the fact that the package flutter_compass is not been updated to support Gradle 8.x yet.
Issue: hemanthrajv/flutter_compass#104

There are 3 potential pull requests that would fix the issue, but none of them has been merged yet:

To work with Gradle 8.x for the moment you might consider adding a dependency override of one of these pull requests in your pubspec.yaml:

dependency_overrides:
  flutter_compass: # Uncomment one of the following
    # git: https://github.com/AlceoMazza/flutter_compass.git
    # git: https://github.com/helpisdev/flutter_compass.git
    # git:
    #   url: https://github.com/Hans-Einar/flutter_compass.git
    #   ref: patch-1

@tlserver tlserver mentioned this issue May 23, 2024
@fisforfaheem
Copy link

Hi. Can you provide a detailed reproduce step?

thank for my reply

this show error when update Gradle to version 8.x
but down version Gradle to version 7.x It'work

Kindly make a fork and merge the pr and use that instead

@fisforfaheem
Copy link

This is caused by the fact that the package flutter_compass is not been updated to support Gradle 8.x yet.
Issue: hemanthrajv/flutter_compass#104

There are 3 potential pull requests that would fix the issue, but none of them has been merged yet:

To work with Gradle 8.x for the moment you might consider adding a dependency override of one of these pull requests in your pubspec.yaml:

dependency_overrides:
  flutter_compass: # Uncomment one of the following
    # git: https://github.com/AlceoMazza/flutter_compass.git
    # git: https://github.com/helpisdev/flutter_compass.git
    # git:
    #   url: https://github.com/Hans-Einar/flutter_compass.git
    #   ref: patch-1

Kindly make a fork and merge the pr and use that instead

Copy link

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Jun 23, 2024
@tlserver tlserver removed the Stale label Jun 29, 2024
Copy link

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Jul 30, 2024
Copy link

github-actions bot commented Aug 6, 2024

This issue was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants