sarbagyastha / youtube_player_flutter

A Flutter plugin for inline playback or streaming of YouTube videos using the official iFrame Player API.
https://youtube.sarbagyastha.com.np
BSD 3-Clause "New" or "Revised" License
696 stars 801 forks source link

Update Android Version #839

Open Juanixou opened 1 year ago

Juanixou commented 1 year ago

There is a problem with the gradle update, and now, all libraries need an specific namespace on its build.gradle. If you can update the current version adding it, it will be nice. Thank you so much

memoriasIT commented 1 month ago

I am getting this error too, the problem is in the dependency flutter_inappwebview. It is already fixed there, we just need to use version > 6 https://github.com/pichillilorenzo/flutter_inappwebview/issues/1975

A problem occurred configuring project ':flutter_inappwebview'.
> 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.

EDIT: I noticed I was not using the latest version, make sure you are using > 9.0.0 9.0.0 Bumps flutter_inappwebview to latest version. For me it works with : youtube_player_flutter: ^9.0.2