justsoft / video_thumbnail

This plugin generates thumbnail from video file or URL. It returns image in memory or writes into a file. It offers rich options to control the image format, resolution and quality. Supports iOS and Android.
MIT License
186 stars 282 forks source link

namespace missed #173

Open MohammedFlutter opened 4 weeks ago

MohammedFlutter commented 4 weeks ago

please add in build.gradle file android { namespace 'xyz.justsoft.video_thumbnail' }

jannisnikoy commented 3 weeks ago

FYI, I think is related to the version of the com.android.application plugin, and affects a lot of third party packages. I didn't encounter this issue on some existing older flutter projects that use an older version of this plugin. I'm using the below and it compiles just fine.

plugins {
    id "com.android.application" version "7.3.0" apply false
    // ...
}
mhop2101 commented 2 weeks ago

Had the same problem

* What went wrong:
A problem occurred configuring project ':video_thumbnail'.
> 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.

This fork provides a solution :)

https://pub.dev/packages/get_thumbnail_video/install