PurpleSoftSrl / sumup_flutter_plugin

A Flutter wrapper to use the SumUp SDK. With this plugin, your app can easily connect to a SumUp terminal, login and accept card payments on Android and iOS.
https://www.purplesoft.io
MIT License
17 stars 17 forks source link

Missing namespace when using AGP 8 #58

Closed rivella50 closed 2 months ago

rivella50 commented 4 months ago

When trying to build my app with AGP version 8.x and targetSdkVersion 34 i get this error:

A problem occurred configuring project ':sumup'.
> 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: /Users/valley/.pub-cache/hosted/pub.dev/sumup-0.9.0/android/build.gradle. 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.

What's missing is a namespace entry in android/build.gradle like this:

android {
    namespace "io.purplesoft.sumup"
    ...
}

Could you please add this missing part? Thanks a lot.

sstasi95 commented 2 months ago

Fixed in version 0.10.0

rivella50 commented 2 months ago

Thanks a lot!