Status Update
Comments
jb...@google.com <jb...@google.com> #2
Hi. Thanks for reporting this. Fixed in alpha-04
li...@gmail.com <li...@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
jb...@google.com <jb...@google.com>
sv...@whisp.de <sv...@whisp.de> #4
ap...@google.com <ap...@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
jb...@google.com <jb...@google.com> #6
This has been fixed internally and will be available in the Navigation 2.4.2
and 2.5.0-alpha03
releases.
hn...@formerstudents.ucdavis.edu <hn...@formerstudents.ucdavis.edu> #7
sp...@google.com <sp...@google.com> #8
Re: #7, you might be hitting an error if your applicationId
is different than your namespace
because the navigation-safe-args-gradle-plugin
is incorrectly using the applicationId
instead of the namespace
to namespace the R class. There's an internal bug tracking this (
sv...@whisp.de <sv...@whisp.de> #9
Can you please post a comment on this issue so that everyone subscribed here will be notified when the internal bug has been fixed and the fix has been shipped? Thanks in advance!
sp...@google.com <sp...@google.com> #10
Re #9,
sv...@whisp.de <sv...@whisp.de> #11
Neat, many thanks!
Description
Component used: Navigation SafeArgs Kotlin Plugin
Version used: 2.3.5, 2.5.0-alpha01
Reproduced on: Build step
My problem is that the plugin generates classes using the package field from the manifest and substitutes in the path to import the R class.
If you remove the name package field from the manifest and move it to gradle script namespace(AGP 7.1.0). The plugin will generate Directions files with this R import:
import R
And I receive
Unresolved reference: R
Therefore will not find the required ActionId from xml When I ran into returning package in the manifest file, it generated the correct R class imports
import com.example.app.R