Fixed
Status Update
Comments
il...@google.com <il...@google.com> #2
This seems to be occurring in the two latest versions of the Android Gradle plugin, specifically in 3.3.0-beta04 and 3.4.0-alpha04. Caused by the complete deprecation of a method used by the Safe Args plugin (see ag/5426837). I'll check with the tools team to see what can Safe-Args do about change.
Description
Version used: 1.0.0-alpha09
Since Safe Args currently has the child Directions class extend the parent navigation graph's Directions object, it can fail to compile due to different return types if the parent and child have the same action id and arguments.
<navigation
android:id="@+id/parent"
app:startDestination="@+id/child">
<action
android:id="@+id/next"
app:popUpTo="@+id/parent" />
<fragment
android:id="@+id/child">
<action
android:id="@+id/next
app:popUpTo="@+id/parent"/>
</fragment>
</navigation>