Skip to content
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

get_stream_chat not working because of a dependency that doesn't follow Gradle's rules #2056

Open
1 task done
level2fast opened this issue Dec 3, 2024 · 1 comment
Open
1 task done
Labels
bug Something isn't working

Comments

@level2fast
Copy link

Which packages are you using?

stream_chat_flutter

On what platforms did you experience the issue?

Android

What version are you using?

8.2.0

What happened?

Steps to reproduce

1. Create a new flutter sample app using vscode
2. Add stream_chat_flutter: ^8.2.0 as an dependency
3. build the apk
...

Supporting info to reproduce

No response

Relevant log output

PS C:\Gitlab\getstream-chat-sample-app\get_stream_chat_sample_app> flutter build apk   


FAILURE: Build failed with an exception.

* 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.

     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.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 1s
Running Gradle task 'assembleRelease'...                         1,799ms
Gradle task assembleRelease failed with exit code 1

Flutter analyze output

No response

Flutter doctor output

PS C:\Gitlab\getstream-chat-sample-app\get_stream_chat_sample_app> flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.24.5, on Microsoft Windows [Version 10.0.22631.4541], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.10.1)
[√] Android Studio (version 2024.1)
[√] VS Code (version 1.95.3)
[√] Connected device (4 available)
[√] Network resources

• No issues found!

Code of Conduct

  • I agree to follow this project's Code of Conduct
@level2fast level2fast added the bug Something isn't working label Dec 3, 2024
@akinsete
Copy link

akinsete commented Dec 3, 2024

Am having similar error with this video_player_android plugin.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':video_player_android:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants