Skip to content
This repository was archived by the owner on Jul 11, 2024. It is now read-only.

Conversation

gaabrielricci
Copy link

Resolved namespace incompatibility issue in build.gradle in app module. Error in the image below. And updated the package build version to the latest android version.

app_badger

@j-ixcayau
Copy link

Any update of this PR?

@gaabrielricci
Copy link
Author

waiting for the owner

@biklas7
Copy link

biklas7 commented Nov 9, 2023

hey @gaabrielricci I tried to use your fork and it shows this error:
Build file '/Users/.../.pub-cache/git/flutter_app_badger-b4c1958dd11e60ff69b34396522901a71078f036/android/build.gradle' should not contain a package statement.

@gaabrielricci
Copy link
Author

@biklas7

Check the implementation if it is correct in your pubspec.yaml, I created a new flutter project, only added my fork, and it worked correctly with the updated gradle 8/8.1.3

implementation:

cupertino_icons: ^1.0.2
flutter_app_badger:
path: C:/............../Documents/teste/flutter_app_badger

@jakobleck
Copy link

According to the migration guide for buttons it is recommended to use ElevatedButton as a replacement for RaisedButton. ;)

@gaabrielricci
Copy link
Author

According to the migration guide for buttons it is recommended to use ElevatedButton as a replacement for RaisedButton. ;)

I just updated the android dependencies to get rid of the namespace error. I didn't update the code for this library

@jakobleck
Copy link

According to the migration guide for buttons it is recommended to use ElevatedButton as a replacement for RaisedButton. ;)

I just updated the android dependencies to get rid of the namespace error. I didn't update the code for this library

Are you sure? :) I'm referring to the changes in the example app.

@nav-mrizzello
Copy link

When will the new library be released with this change?

@MyBlueford16
Copy link

Any chance this will get merged in soon? I really don't want to have to migrate to a different package but this is blocking us from releasing a critical update.

@jakobleck
Copy link

Just use a git ref for including the package until a new version is released?

@MyBlueford16
Copy link

Just use a git ref for including the package until a new version is released?

@jakobleck yeahhh that's what I ended up doing. Was hoping to avoid that

@leejh10003
Copy link

Yeah I need this patch too. Isn't there any update on this?

@nohli
Copy link

nohli commented Mar 8, 2024

@g-30 @g123k could you publish a fix for the namespace please?

This prevents an app using this plugin to upgrade to Android Gradle Plugin >=8.

@ChrisElliotUK
Copy link

We’ve had to pgrade to Android Gradle Plugin >=8 due to another package and now we can’t compile because of this. Please can you merge this

@j-ixcayau
Copy link

For those who are still waiting for the merge, I added this update like this

  flutter_app_badger:
    git:
      url: https://github.com/g123k/flutter_app_badger.git

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

Successfully merging this pull request may close these issues.