BlinkID / blinkid-flutter

ID scanning plugins for cross-platform apps built with Flutter.
76 stars 23 forks source link

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

Open RuiMiguel opened 2 weeks ago

RuiMiguel commented 2 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

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

mparadina commented 1 week ago

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