Skip to content

AGP 9 Migration: Post-migration cleanup and verification #581

@atick-faisal

Description

@atick-faisal

Overview

Track remaining tasks and verification steps after successful AGP 9.1.0 migration.

Completed ✅

  • Resolved merge conflicts in gradle files
  • Removed kotlin-android plugin from convention plugins (built-in Kotlin in AGP 9)
  • Updated DSL imports to new AGP 9 API
  • Migrated from applicationVariants to androidComponents.onVariants
  • Applied Dokka configuration workaround
  • Verified build success (528 tasks, 2m 37s)
  • Updated Hilt to 2.59.2 (AGP 9 compatible)

Pending Tasks 📋

High Priority

Medium Priority

Low Priority

  • Verify all CI/CD workflows work with AGP 9
  • Check if LeakCanary works correctly with AGP 9
  • Run full test suite (when tests are implemented)

Known Warnings ⚠️

These warnings appear during build but don't prevent success:

  1. Dokka warnings (harmless, fixed in Dokka 2.2.0-Beta):

    class org.jetbrains.dokka.gradle.adapters.AndroidExtensionWrapper could not get Android Extension
    
  2. Configuration cache warning:

    Configuration cache entry discarded because incompatible task was found: 
    'task :app:debugOssLicensesTask' of type 'com.google.android.gms.oss.licenses.plugin.LicensesTask'
    

Version Summary

  • AGP: 9.1.0 ✅
  • Kotlin: 2.3.10 ✅
  • Gradle: 9.4.0 ✅
  • Hilt: 2.59.2 ✅
  • Dokka: 2.1.0 (needs upgrade to 2.2.0-Beta)
  • Spotless: 8.3.0 (task discovery issues)

Migration Resources

Labels

  • enhancement
  • tracking

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions