juliuscanute / qr_code_scanner

QR Code Scanner for Flutter
BSD 2-Clause "Simplified" License
1.01k stars 799 forks source link

Update build.gradle #720

Open asmrtfm opened 10 months ago

asmrtfm commented 10 months ago

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 commented 8 months ago

@asmrtfm please merge this.

ro0t commented 3 months ago

Merge it!

josepheztwhitefox commented 3 months ago

Please merge it!

esaiamuthan commented 3 months ago

@asmrtfm please merge this pull request ASAP

Its quite urgent

Thanks

esaiamuthan commented 3 months ago

@aditya1331 can you able to merge this PR please ?

MorosophDude commented 1 month ago

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.