Build time error in navigation component direction generated classes after updating android studio to chipmunk

761 views Asked by At

I'm getting "Unresolved reference: R" build time error after updating android studio to chipmunk version in all "Direction" classes that are generated by navigation component. R class is not imported in that classes, though I can import it manually but classes will be regenerated without import in next build

android gradle plugin version = 7.2.0

gradle wrapper version = 7.3.3-all

any solutions?

1

There are 1 answers

0
Theo Mavrakis On

Had this same issue, I was able to fix it by updating this dependency in my Module build.grade

buildscript {    
dependencies {
        classpath("androidx.navigation:navigation-safe-args-gradle-plugin:2.5.0-rc01")
    }
}

I also made sure my Android Gradle Plugin Version and Gradle Version were both set to the latest versions. (in the Project Structure->Project)