Skip to content

Replace Gradle 7 deprecated properties #81095

Closed

Description

@guidezpl

flutter/gallery@HEAD with flutter@HEAD

 ./gradlew --warning-mode all

> Configure project :app
The AbstractArchiveTask.destinationDir property has been deprecated. This is scheduled to be removed in Gradle 7.0. Please use the destinationDirectory property instead. See https://docs.gradle.org/6.7/dsl/org.gradle.api.tasks.bundling.AbstractArchiveTask.html#org.gradle.api.tasks.bundling.AbstractArchiveTask:destinationDir for more details.
        at FlutterPlugin$_addFlutterTasks_closure18$_closure37.doCall(/Users/plg/development/flutter-dev/packages/flutter_tools/gradle/flutter.gradle:793)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)
The AbstractArchiveTask.archiveName property has been deprecated. This is scheduled to be removed in Gradle 7.0. Please use the archiveFileName property instead. See https://docs.gradle.org/6.7/dsl/org.gradle.api.tasks.bundling.AbstractArchiveTask.html#org.gradle.api.tasks.bundling.AbstractArchiveTask:archiveName for more details.
        at FlutterPlugin$_addFlutterTasks_closure18$_closure37.doCall(/Users/plg/development/flutter-dev/packages/flutter_tools/gradle/flutter.gradle:794)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)

Related to #79155

Activity

  1. added
    toolAffects the "flutter" command-line tool. See also t: labels.
    t: gradle"flutter build" and "flutter run" on Android
    on Apr 23, 2021
  2. added
    P3Issues that are less important to the Flutter project
    c: new featureNothing broken; request for a new capability
    on Apr 25, 2021
  3. DevangHelios commented on Sep 24, 2021

    @DevangHelios

    I am facing the same issue.

  4. sebastianhaberey commented on Sep 26, 2021

    @sebastianhaberey

    Same here. It looks like fixing this could be a quick win, since the error message lists alternatives for the deprecated properties.

  5. bartekpacia commented on Jun 5, 2022

    @bartekpacia
    Member

    Bump

  6. galih9 commented on Aug 1, 2022

    @galih9

    any update on this issue? Im facing the same issue

  7. lanrehnics commented on Sep 20, 2022

    @lanrehnics

    any update on this ??

  8. BurykinNikolay commented on Sep 29, 2022

    @BurykinNikolay

    same

  9. padyukovai commented on Sep 29, 2022

    @padyukovai

    I have the same issue, please fix it!

  10. bartekpacia commented on Jan 5, 2023

    @bartekpacia
    Member

    See also #112858

  11. bartekpacia commented on Mar 27, 2023

    @bartekpacia
    Member

    This was fixed in #112858

  12. todosrc commented on Apr 10, 2023

    @todosrc

    I have the same issue

    my environment :

    Flutter 3.7.10
    classpath 'com.android.tools.build:gradle:7.3.1'
    distributionUrl=https://services.gradle.org/distributions/gradle-8.0.2-all.zip

  13. todosrc commented on Apr 10, 2023

    @todosrc

    Launching lib\main.dart on sdk gphone x86 in debug mode...
    Running Gradle task 'assembleDebug'...

    FAILURE: Build failed with an exception.

    • Where:
      Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 912

    • What went wrong:
      A problem occurred evaluating root project 'android'.

    A problem occurred configuring project ':app'.
    Could not create task ':app:packLibsflutterBuildDebug'.
    > No signature of method: org.gradle.api.tasks.bundling.Jar.destinationDir() is applicable for argument types: (File) values: [C:\renogies\reno1_pos\build\app\intermediates\flutter\debug]

  14. bartekpacia commented on Apr 10, 2023

    @bartekpacia
    Member

    The fix is already on master. This issue can be closed.

  15. github-actions commented on Apr 28, 2023

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  16. locked as resolved and limited conversation to collaborators on Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: new featureNothing broken; request for a new capabilityt: gradle"flutter build" and "flutter run" on AndroidtoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions