You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Summary
Not able to build
flutter
app, getting error belowThe text was updated successfully, but these errors were encountered: