Simon Hardt
02/07/2023, 9:35 AM8.0.0-beta01
. now I have to use the correct import for the R class when a resource is in a different module. is this intended? normally, one can use the R of the current module and get access to all other resources in all other modules automatically.
it's now com.example.text.R.string.
instead of R.string.
(with import com.example.ui.R
)ephemient
02/07/2023, 9:39 AMR
classes at the same time, as long as you give them different aliases
import com.example.text.R as TextR
import com.example.ui.R
findViewById<TextView>(R.id.foo).text = getString(TextR.string.bar)
Simon Hardt
02/07/2023, 9:48 AMephemient
02/07/2023, 9:52 AMtrue
(by defaults changed in AGP 8.0) so there's nothing to migrate, maybe if it were explicitly false
it would offer to run the wizard?Simon Hardt
02/07/2023, 9:58 AMandroid.nonTransitiveRClass=false
enables this option