Skip to content

Conversation

@asmrtfm
Copy link

@asmrtfm asmrtfm commented Dec 29, 2023

Sets namespace to fix the following error:

Failed to query the value of property 'buildFlowServiceProperty'.
> Could not isolate value org.jetbrains.kotlin.gradle.plugin.statistics.BuildFlowService$Parameters_Decorated@325f2fc3 of type BuildFlowService.Parameters
   > A problem occurred configuring project ':qr_code_scanner'.
      > 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.

Sets namespace to fix the following error:

```
Failed to query the value of property 'buildFlowServiceProperty'.
> Could not isolate value org.jetbrains.kotlin.gradle.plugin.statistics.BuildFlowService$Parameters_Decorated@325f2fc3 of type BuildFlowService.Parameters
   > A problem occurred configuring project ':qr_code_scanner'.
      > 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.
```
@ccosnean
Copy link

@asmrtfm please merge this.

@ro0t
Copy link

ro0t commented Jul 31, 2024

Merge it!

@josepheztwhitefox
Copy link

Please merge it!

@esaiamuthan
Copy link

@asmrtfm please merge this pull request ASAP

Its quite urgent

Thanks

@esaiamuthan
Copy link

@aditya1331 can you able to merge this PR please ?

@MorosophDude
Copy link

Looks like the maintainer is quite stubborn. Maybe they want everyone to migrate to their new package mobile_scanner but that is such a chore.

Well thanks @asmrtfm for this patch/PR (saved me a lot of time).

If anyone else stumbles onto this post, in your pubspec.yaml replace

qr_code_scanner: ^1.0.1

with

  qr_code_scanner:
    git:
      url: https://github.com/asmrtfm/qr_code_scanner
      ref: patch-1
      version: ^1.0.0

to use this patch.

Maybe also leave a comment thanking @asmrtfm.

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

Successfully merging this pull request may close these issues.

7 participants