-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]Namespace not specified. Specify a namespace in the module's build file. #1345
Comments
BetterPlayer doesnt currently support the newest gradle version. But you can quickly fix it yourself: Go to your Pub/Cache folder where flutter caches your packages, look for betterplayer and the build.gradle file. Then add:
full code example: ...
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
android {
namespace = "com.jhomlala.better_player"
compileSdkVersion 31
compileOptions {
... This should resovle the problem |
I hope it'll be fixed in the next release. Thanks for all... |
find the Pub/Cache file by this command : sudo ~/.pub-cache/hosted/pub.dev you can find better_player folder. find and update gradle happy coding |
@jhomlala Please fix this issue. this solution is working as a quick fix, but every time I need to make changes after flutter clean |
There even are multiple outstanding PRs that implemented a fix already! |
use this in android/build.gradle
|
https://github.com/afrahshaikh/even_better_player i have fixed it here |
I am also getting the same I have fixed it by adding: namespace = "com.jhomlala.better_player" in the build.gradle file you can find it in: .pub-cache/hosted/pub.dev/better_player-0.0.84 after adding it your code should be like this: apply plugin: 'com.android.library' android {
} dependencies { |
History check
Yes
Describe the bug
FAILURE: Build failed with an exception.
A problem occurred configuring project ':better_player'.
*Example code
used the code as per the code block
Flutter doctor
Please add flutter doctor output here.
Better Player version
Smartphone (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: