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

Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported #62

Open
RuiMiguel opened this issue Jun 14, 2024 · 8 comments

Comments

@RuiMiguel
Copy link

RuiMiguel commented Jun 14, 2024

I have added blinkid_flutter package to a Flutter Android/iOS app, when I compile to Android I see this error on debug console

Incorrect package="com.microblink.flutter" found in source AndroidManifest.xml: /Users/ruialonso/.pub-cache/hosted/pub.dev/blinkid_flutter-6.7.0/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported.
Recommendation: remove package="com.microblink.flutter" from the source AndroidManifest.xml: /Users/ruialonso/.pub-cache/hosted/pub.dev/blinkid_flutter-6.7.0/android/src/main/AndroidManifest.xml.

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':blinkid_flutter:processDebugManifest'.
> A failure occurred while executing com.android.build.gradle.tasks.ProcessLibraryManifest$ProcessLibWorkAction
   > Incorrect package="com.microblink.flutter" found in source AndroidManifest.xml: /Users/ruialonso/.pub-cache/hosted/pub.dev/blinkid_flutter-6.7.0/android/src/main/AndroidManifest.xml.
     Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported.
     Recommendation: remove package="com.microblink.flutter" from the source AndroidManifest.xml: /Users/ruialonso/.pub-cache/hosted/pub.dev/blinkid_flutter-6.7.0/android/src/main/AndroidManifest.xml.

To be compatible with the latest versions of gradle, the library must remove package="com.microblink.flutter" from AndroidManifest.xml. I've tried to do this in local and the app compiles and runs succesfully.

Environment

flutter: 3.19.3
blinkid_flutter: ^6.7.0

Android
com.android.application 8.4.1
compileSdkVersion 34
minSdkVersion 21
jvmTarget = 17

@mparadina
Copy link
Contributor

Hi @RuiMiguel

Thank you for reporting the issue.
This will be fixed in the upcoming 6.8.0 release.

I will notify you here once the SDK has been released.

@omartinma
Copy link

@mparadina thanks for the quick response to the issue. Do you have an estimate of when this will be ready? Thanks!

@mparadina
Copy link
Contributor

@omartinma the new release should come out by the end of next week.
Let me know if anything else comes up in the meantime.

@omartinma
Copy link

@mparadina i see there has not been any update last week, is there any estimation about this?

@mparadina
Copy link
Contributor

Hi @omartinma!
Apologies for the longer wait for the release. The version 6.8.0 has been released, which can be found here:
https://github.com/BlinkID/blinkid-flutter/releases/tag/v6.8.0

Please test it out and let me know if it is working as expected. :)

@RuiMiguel
Copy link
Author

Thank you so much @mparadina , we will update and check it

@mparadina
Copy link
Contributor

@RuiMiguel no worries!
Did you maybe test out the SDK? Is it working as expected now?

@RuiMiguel
Copy link
Author

Hi @mparadina I have tested last version on my Android device and it works.
Thanks!

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

3 participants