mateusfccp / update_available

Know if there's any update for your Flutter app, based on published versions.
MIT License
25 stars 16 forks source link

update_available_android - Namespace not specified #37

Closed TheAndroidMonk closed 7 months ago

TheAndroidMonk commented 8 months ago

Compilation fails on AGP 8.3.0 `Failed to query the value of property 'buildFlowServiceProperty'.

Could not isolate value org.jetbrains.kotlin.gradle.plugin.statistics.BuildFlowService$Parameters_Decorated@1da8d279 of type BuildFlowService.Parameters A problem occurred configuring project ':update_available_android'. 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.`

Request to migrate to latest AGP and gradle.

mateusfccp commented 8 months ago

Are you willing to open a PR? I don't have much time right know to solve this.

kuhnroyal commented 7 months ago

@TheAndroidMonk Can you test the linked PR?

coder-flutter commented 7 months ago

Can you please update the package as we are still getting the same error.

mateusfccp commented 7 months ago

Can you please update the package as we are still getting the same error.

The proposed solution has been merged into master. We have a release prepared with this fix, so it would be helpful if you could test it, so we could be sure it's working as intended.

You can do it by pointing the dependency in your pubspec.yaml directly to master.

kuhnroyal commented 7 months ago

dependency_overrides:
  update_available:
    git:
      url: https://github.com/mateusfccp/update_available
      ref: master
      path: update_available
  update_available_ios:
    git:
      url: https://github.com/mateusfccp/update_available
      ref: master
      path: update_available_ios
  update_available_android:
    git:
      url: https://github.com/mateusfccp/update_available
      ref: master
      path: update_available_android
kuhnroyal commented 7 months ago

If you can successfully build with this, it can probably be released.

mateusfccp commented 7 months ago

@coder-flutter Did you get it working by using master?