-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
I upgrade flutter to 3.35.7 and set
id("com.android.application") version "8.9.1" apply false
in settings.gradle.kts
after building app I has error:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
run command ./gradlew build --warning-mode all
and see next info
> Configure project :adapty_flutter
Build file '/Users/komkovkonstantin/.pub-cache/hosted/pub.dev/adapty_flutter-3.11.2/android/build.gradle': line 5
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.12/userguide/upgrading_version_6.html#jcenter_deprecation
at build_6kg6n8u6ac8ghha1nc8qp7ink$_run_closure1$_closure3.doCall$original(/Users/komkovkonstantin/.pub-cache/hosted/pub.dev/adapty_flutter-3.11.2/android/build.gradle:5)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
at build_6kg6n8u6ac8ghha1nc8qp7ink$_run_closure1.doCall$original(/Users/komkovkonstantin/.pub-cache/hosted/pub.dev/adapty_flutter-3.11.2/android/build.gradle:3)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
Build file '/Users/komkovkonstantin/.pub-cache/hosted/pub.dev/adapty_flutter-3.11.2/android/build.gradle': line 19
Space-assignment syntax in Groovy DSL has been deprecated. This is scheduled to be removed in Gradle 10.0. Use assignment ('group = <value>') instead. Consult the upgrading guide for further information: https://docs.gradle.org/8.12/userguide/upgrading_version_8.html#groovy_space_assignment_syntax
at build_6kg6n8u6ac8ghha1nc8qp7ink.run(/Users/komkovkonstantin/.pub-cache/hosted/pub.dev/adapty_flutter-3.11.2/android/build.gradle:19)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
Build file '/Users/komkovkonstantin/.pub-cache/hosted/pub.dev/adapty_flutter-3.11.2/android/build.gradle': line 20
Space-assignment syntax in Groovy DSL has been deprecated. This is scheduled to be removed in Gradle 10.0. Use assignment ('version = <value>') instead. Consult the upgrading guide for further information: https://docs.gradle.org/8.12/userguide/upgrading_version_8.html#groovy_space_assignment_syntax
at build_6kg6n8u6ac8ghha1nc8qp7ink.run(/Users/komkovkonstantin/.pub-cache/hosted/pub.dev/adapty_flutter-3.11.2/android/build.gradle:20)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
Build file '/Users/komkovkonstantin/.pub-cache/hosted/pub.dev/adapty_flutter-3.11.2/android/build.gradle': line 25
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.12/userguide/upgrading_version_6.html#jcenter_deprecation
at build_6kg6n8u6ac8ghha1nc8qp7ink$_run_closure1$_closure4.doCall$original(/Users/komkovkonstantin/.pub-cache/hosted/pub.dev/adapty_flutter-3.11.2/android/build.gradle:25)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
at build_6kg6n8u6ac8ghha1nc8qp7ink$_run_closure1.doCall$original(/Users/komkovkonstantin/.pub-cache/hosted/pub.dev/adapty_flutter-3.11.2/android/build.gradle:23)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
Build file '/Users/komkovkonstantin/.pub-cache/hosted/pub.dev/adapty_flutter-3.11.2/android/build.gradle': line 26
Space-assignment syntax in Groovy DSL has been deprecated. This is scheduled to be removed in Gradle 10.0. Use assignment ('url = <value>') instead. Consult the upgrading guide for further information: https://docs.gradle.org/8.12/userguide/upgrading_version_8.html#groovy_space_assignment_syntax
at build_6kg6n8u6ac8ghha1nc8qp7ink$_run_closure1$_closure4$_closure5.doCall$original(/Users/komkovkonstantin/.pub-cache/hosted/pub.dev/adapty_flutter-3.11.2/android/build.gradle:26)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
at build_6kg6n8u6ac8ghha1nc8qp7ink$_run_closure1$_closure4.doCall$original(/Users/komkovkonstantin/.pub-cache/hosted/pub.dev/adapty_flutter-3.11.2/android/build.gradle:26)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
Space-assignment syntax in Groovy DSL has been deprecated. This is scheduled to be removed in Gradle 10.0. Use assignment ('compileSdk = <value>') instead. Consult the upgrading guide for further information: https://docs.gradle.org/8.12/userguide/upgrading_version_8.html#groovy_space_assignment_syntax
at build_6kg6n8u6ac8ghha1nc8qp7ink$_run_closure2.doCall$original(/Users/komkovkonstantin/.pub-cache/hosted/pub.dev/adapty_flutter-3.11.2/android/build.gradle:31)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
at build_6kg6n8u6ac8ghha1nc8qp7ink.run(/Users/komkovkonstantin/.pub-cache/hosted/pub.dev/adapty_flutter-3.11.2/android/build.gradle:30)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
Space-assignment syntax in Groovy DSL has been deprecated. This is scheduled to be removed in Gradle 10.0. Use assignment ('minSdk = <value>') instead. Consult the upgrading guide for further information: https://docs.gradle.org/8.12/userguide/upgrading_version_8.html#groovy_space_assignment_syntax
at build_6kg6n8u6ac8ghha1nc8qp7ink$_run_closure2$_closure9.doCall$original(/Users/komkovkonstantin/.pub-cache/hosted/pub.dev/adapty_flutter-3.11.2/android/build.gradle:46)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
at build_6kg6n8u6ac8ghha1nc8qp7ink$_run_closure2.doCall$original(/Users/komkovkonstantin/.pub-cache/hosted/pub.dev/adapty_flutter-3.11.2/android/build.gradle:45)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
Space-assignment syntax in Groovy DSL has been deprecated. This is scheduled to be removed in Gradle 10.0. Use assignment ('namespace = <value>') instead. Consult the upgrading guide for further information: https://docs.gradle.org/8.12/userguide/upgrading_version_8.html#groovy_space_assignment_syntax
at build_6kg6n8u6ac8ghha1nc8qp7ink$_run_closure2.doCall$original(/Users/komkovkonstantin/.pub-cache/hosted/pub.dev/adapty_flutter-3.11.2/android/build.gradle:53)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
at build_6kg6n8u6ac8ghha1nc8qp7ink.run(/Users/komkovkonstantin/.pub-cache/hosted/pub.dev/adapty_flutter-3.11.2/android/build.gradle:30)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
[Incubating] Problems report is available at: file:///Users/komkovkonstantin/development/projects/duality/android/build/reports/problems/problems-report.html
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/komkovkonstantin/development/projects/duality/android/app/build.gradle.kts' line: 4
* What went wrong:
An exception occurred applying plugin request [id: 'dev.flutter.flutter-gradle-plugin']
> Failed to apply plugin 'dev.flutter.flutter-gradle-plugin'.
> Cannot run Project.afterEvaluate(Action) when the project is already evaluated.
* 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.
Metadata
Metadata
Assignees
Labels
No labels