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

Gradle 8 Issue #25

Open
PranayPant opened this issue Oct 8, 2024 · 2 comments
Open

Gradle 8 Issue #25

PranayPant opened this issue Oct 8, 2024 · 2 comments

Comments

@PranayPant
Copy link

Summary

Not able to build flutter app, getting error below

PS C:\Users\pranay\Documents\flutter_projects\first_app\android> .\gradlew build --warning-mode all                                                                                                                        

> Configure project :rtmp_broadcaster
Build file 'C:\Users\pranay\AppData\Local\Pub\Cache\hosted\pub.dev\rtmp_broadcaster-2.2.6\android\build.gradle': line 8
The RepositoryHandler.jcenter() method has been deprecated. This is scheduled to be removed in Gradle 9.0. JFrog announced JCenter's sunset in February 2021. Use mavenCentral() instead. Consult the upgrading guide for further information: https://docs.gradle.org/8.3/userguide/upgrading_version_6.html#jcenter_deprecation
        at build_c79sxsk4oi5vashz9wbmot3hd$_run_closure1$_closure2.doCall(C:\Users\pranay\AppData\Local\Pub\Cache\hosted\pub.dev\rtmp_broadcaster-2.2.6\android\build.gradle:8)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
        at build_c79sxsk4oi5vashz9wbmot3hd$_run_closure1.doCall(C:\Users\pranay\AppData\Local\Pub\Cache\hosted\pub.dev\rtmp_broadcaster-2.2.6\android\build.gradle:6)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
Build file 'C:\Users\pranay\AppData\Local\Pub\Cache\hosted\pub.dev\rtmp_broadcaster-2.2.6\android\build.gradle': line 20
The RepositoryHandler.jcenter() method has been deprecated. This is scheduled to be removed in Gradle 9.0. JFrog announced JCenter's sunset in February 2021. Use mavenCentral() instead. Consult the upgrading guide for further information: https://docs.gradle.org/8.3/userguide/upgrading_version_6.html#jcenter_deprecation
        at build_c79sxsk4oi5vashz9wbmot3hd$_run_closure1$_closure4.doCall(C:\Users\pranay\AppData\Local\Pub\Cache\hosted\pub.dev\rtmp_broadcaster-2.2.6\android\build.gradle:20)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
        at build_c79sxsk4oi5vashz9wbmot3hd$_run_closure1.doCall(C:\Users\pranay\AppData\Local\Pub\Cache\hosted\pub.dev\rtmp_broadcaster-2.2.6\android\build.gradle:18)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':rtmp_broadcaster'.
> 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 2s
4 actionable tasks: 4 up-to-date
@OlJohnny
Copy link

i have made a pr (#27) collecting all fixes needed for gradle 8 support.
would you mind trying it out and reporting any remaining problems?

pubspec.yaml

  rtmp_broadcaster:
    git: https://github.com/OlJohnny/flutter_rtmp_broadcaster.git

@responilla07
Copy link

responilla07 commented Nov 21, 2024

i have made a pr (#27) collecting all fixes needed for gradle 8 support. would you mind trying it out and reporting any remaining problems?

pubspec.yaml

rtmp_broadcaster:
git: https://github.com/OlJohnny/flutter_rtmp_broadcaster.git

Thanks @OlJohnny this fixed my problem, please check this PR @emiliodallatorre

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants