Android studio build error in navigation component, action is not abstract and does not implement abstract member actionID Android studio build error in navigation component, action is not abstract and does not implement abstract member actionID android android

Android studio build error in navigation component, action is not abstract and does not implement abstract member actionID


I had this problem too.Until they release the fix.Please try this:

plugins {  id("androidx.navigation.safeargs")}

instead of

plugins {  id("androidx.navigation.safeargs.kotlin")}


As for my case, I had to update Safe Arg plugin as well to get rid of the error message.

[build.gradle]buildscript {    ...    dependencies {        ...        classpath 'androidx.navigation:navigation-safe-args-gradle-plugin:2.4.0-alpha04'}[app/build.gradle]dependencies {    ...    implementation 'androidx.fragment:fragment-ktx:1.4.0-alpha04'    api 'androidx.navigation:navigation-fragment-ktx:2.4.0-alpha04'    api 'androidx.navigation:navigation-ui-ktx:2.4.0-alpha04'}


Since the version v2.4.0-alpha02 was released, this known bug is no longer present.

Bug Fixes

  • Safe Args no longer crashes when attempting to generate directionproperties in Kotlin. (Id2416, b/188564435)