Skip to content

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

Description

@RuiMiguel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions