Skip to content

AppSizer plugin is incompatible with Gradle 9 (getDependencyProject removed) #29

@Muragul

Description

@Muragul

After upgrading to Gradle 9 and AGP 9, applying the AppSizer plugin causes the build to fail during configuration. The error mentions the usage of APIs that have been removed in Gradle 9 (for example, getDependencyProject()), so the plugin is incompatible with the current Gradle version.

Gradle: 9.1 (or your exact version)
Android Gradle Plugin: 9.0.0
AppSizer plugin version: 0.1.0-alpha03

Unable to find method ''org.gradle.api.Project org.gradle.api.artifacts.ProjectDependency.getDependencyProject()''
'org.gradle.api.Project org.gradle.api.artifacts.ProjectDependency.getDependencyProject()'
 

Caused by: java.lang.NoSuchMethodError:
 'org.gradle.api.Project org.gradle.api.artifacts.ProjectDependency.getDependencyProject()'
    at com.grab.plugin.sizer.TaskManager.dfs(TaskManager.kt:132)
    at com.grab.plugin.sizer.TaskManager.registerAppSizeTaskDep(TaskManager.kt:115)
    at com.grab.plugin.sizer.TaskManager.configAppSizeTask(TaskManager.kt:95)
    ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions