Status Update
Comments
ey...@gmail.com <ey...@gmail.com> #2
Thanks for the excellent bug report!
vi...@google.com <vi...@google.com>
gh...@google.com <gh...@google.com>
ai...@gmail.com <ai...@gmail.com> #3
🥰
tn...@google.com <tn...@google.com> #4
Ime is not necessary part of repro, relayout does it.
@Composable
private fun TextCrash() {
val infiniteTransition = rememberInfiniteTransition(label = "infinite transition")
val padding by infiniteTransition.animateFloat(
initialValue = 0f,
targetValue = 50f,
animationSpec = infiniteRepeatable(tween(1000), RepeatMode.Reverse),
label = "I like to move it move it"
)
Box(
modifier = Modifier
.padding(padding.toInt().dp)
.fillMaxSize(),
contentAlignment = Alignment.Center
) {
Column(verticalArrangement = Arrangement.spacedBy(12.dp)) {
Text(
text = "Hello Android!".repeat(5),
textAlign = TextAlign.Center,
letterSpacing = 1.sp,
overflow = TextOverflow.Ellipsis,
maxLines = 1
)
}
}
}
tn...@google.com <tn...@google.com> #5
This is the minimal TextStyle to repro
cm...@google.com <cm...@google.com> #6
TextStyle(
textAlign = TextAlign.Center,
letterSpacing = 1.sp,
lineHeight = 24.sp,
lineHeightStyle = LineHeightStyle(
alignment = LineHeightStyle.Alignment.Center,
trim = LineHeightStyle.Trim.None,
mode = LineHeightStyle.Mode.Fixed
),
)
cm...@google.com <cm...@google.com> #7
Fix coming. Will see if I can get it into 1.8-beta01.
tn...@google.com <tn...@google.com> #8
Amazing! That was super quick)
cm...@google.com <cm...@google.com> #9
Excellent bug report and I had some idle cycles this week :)
ai...@gmail.com <ai...@gmail.com> #10
Issue still exists in AGP 7.0.1
ai...@gmail.com <ai...@gmail.com> #12
I updated dependencies on #4 comment project and it fixed for original code, but to reproduce it enough to change import alias from the resource itself to alias for R file (which arguably the much more common use case):
- import com.android.tools.test.lib2.R.string.lib2 as String_lib2
+ import com.android.tools.test.lib2.R as Lib2R
- println(String_lib2)
+ println(Lib2R.string.lib2)
Attached updated project
ga...@freeletics.com <ga...@freeletics.com> #13
Issue still exists in 7.1.0 for us
ga...@gmail.com <ga...@gmail.com> #14
The reproducer from
sp...@google.com <sp...@google.com> #15
This has been fixed. The fix will be in AGP 7.3.0-alpha09 and/or 7.3.0-beta01.
Change-Id: Ia15bd84ffc0ed963b431f6fe1d89f19f5ca27cbe
de...@google.com <de...@google.com> #16
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Dolphin Canary 9 (2021.3.1.9)
- Android Gradle Plugin 7.3.0-alpha09
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
ai...@gmail.com <ai...@gmail.com> #17
I checked test project and my own project and it looks that bug was fixed in 7.3.0-alpha09
Description
I set
android.nonTransitiveRClass=true
which led to a lot of fully qualifiedR
references throughout my project.I solved that by using a lot of import aliases for the different
R
classes, e.g.:However, Lint marks them as unused.