Status Update
Comments
ac...@gmail.com <ac...@gmail.com> #2
Hi. Thanks for reporting this. Fixed in alpha-04
il...@google.com <il...@google.com>
sh...@gmail.com <sh...@gmail.com> #3
Branch: androidx-main
commit e782987543a9f8ccd485e970ddc74564b24378db
Author: Vighnesh Raut <vighnesh.raut13@gmail.com>
Date: Mon Jan 02 15:27:40 2023
fix: tab row crashes when only 1 tab is added
Bug:
Test: Added unit test
Change-Id: I6381dbac304fc1d69d3708c6655f8b595668e93f
M tv/tv-material/src/androidTest/java/androidx/tv/material/TabRowTest.kt
M tv/tv-material/src/main/java/androidx/tv/material/TabRow.kt
ap...@google.com <ap...@google.com> #4
il...@google.com <il...@google.com> #5
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.tv:tv-material:1.0.0-alpha04
ed...@googlemail.com <ed...@googlemail.com> #6
I am unfortunately still seeing this as part of Navigation 2.4.0-alpha02
./gradlew :app:dependencies | grep navigation
+--- androidx.navigation:navigation-fragment-ktx:2.4.0-alpha02
| \--- androidx.navigation:navigation-fragment:2.4.0-alpha02
| +--- androidx.navigation:navigation-runtime:2.4.0-alpha02
| | +--- androidx.navigation:navigation-common:2.4.0-alpha02
The error I see is similar in nature to previously mentioned:
Class 'ActionHomeFragmentToDetailFragment' is not abstract and does not implement abstract member public abstract val actionId: Int defined in androidx.navigation.NavDirections e: HomeFragmentDirections.kt: (19, 12): 'getActionId' overrides nothing e: HomeFragmentDirections.kt: (22, 12): 'getArguments' overrides nothing
The source for this HomeFragmentDirections.kt is attached - if you need any further details please let me know
For reference, reverting to use the 'androidx.navigation.safeargs' instead of 'androidx.navigation.safeargs.kotlin' resolved this issue
tp...@gmail.com <tp...@gmail.com> #7
Working fine for me upgrading to 2.4.0-alpha02 made the generated actionId a val instead of a fun
public override val actionId: Int = R.id.action_leaderboard_to_userProfile
Did you happen to change androidx.navigation:navigation-safe-args-gradle-plugin to 2.4.0-alpha02 as well?
zh...@gmail.com <zh...@gmail.com> #8
Don't forget to clean/build after gradle sync
Description
Component used: Navigation
Version used: 2.4.0-alpha01
After update Navigation from 2.3.5 to 2.4.0-alpha01 I received this errors:
I think it because Safe-Args plugin codegen not updated to new structure of NavDirections (Kotlin val`s instead methods)