Fixed
Status Update
Comments
rm...@google.com <rm...@google.com> #2
Is this just a regular button? Any custom views? Do you have a minimal example that reproduces the problem?
Thanks!
Thanks!
tn...@google.com <tn...@google.com> #3
Yes. Its a regular button. Same issue with the MaterialButton from
com.google.android.material:material:1.1.0-alpha05.
constraint layout - androidx.constraintlayout:constraintlayout:2.0.0-alpha3
gradle plugin - com.android.tools.build:gradle:3.5.0-alpha08
Using this with Kotlin gradle DSL which also brings up other bugs while adding material components (like FABs) as the editor cannot find the dependencies in build.gradle file coz may be it pattern matches it to the groovy syntax and shows an alert everytime to add the dependency for the design library. There are a couple more, may be I'll create issues for them later when I have the time.
Noticed this in AS 3.5 canary 9 first and then tried on the canary 8. Have also tried with constraintlayout 1.1.3.
com.google.android.material:material:1.1.0-alpha05.
constraint layout - androidx.constraintlayout:constraintlayout:2.0.0-alpha3
gradle plugin - com.android.tools.build:gradle:3.5.0-alpha08
Using this with Kotlin gradle DSL which also brings up other bugs while adding material components (like FABs) as the editor cannot find the dependencies in build.gradle file coz may be it pattern matches it to the groovy syntax and shows an alert everytime to add the dependency for the design library. There are a couple more, may be I'll create issues for them later when I have the time.
Noticed this in AS 3.5 canary 9 first and then tried on the canary 8. Have also tried with constraintlayout 1.1.3.
Description
When running lint (on either AGP 3.2 or 3.4-alpha10), I can make the linter crash by including the following weird string.
<string name="space_slash"> \</string>
The stacktrace is as follows
> Task :app:lintRelease
java.lang.StringIndexOutOfBoundsException: String index out of range: 2
at java.lang.String.charAt(String.java:658)
at com.android.tools.lint.checks.DuplicateResourceDetector.checkXmlEscapes(DuplicateResourceDetector.java:397)
at com.android.tools.lint.checks.DuplicateResourceDetector.visitAttribute(DuplicateResourceDetector.java:191)
at com.android.tools.lint.client.api.ResourceVisitor.visitElement(ResourceVisitor.java:170)
at com.android.tools.lint.client.api.ResourceVisitor.visitElement(ResourceVisitor.java:186)
at com.android.tools.lint.client.api.ResourceVisitor.visitFile(ResourceVisitor.java:134)
at com.android.tools.lint.client.api.LintDriver.checkResourceFolder(LintDriver.kt:1863)
at com.android.tools.lint.client.api.LintDriver.checkResFolder(LintDriver.kt:1807)
at com.android.tools.lint.client.api.LintDriver.runFileDetectors(LintDriver.kt:987)
at com.android.tools.lint.client.api.LintDriver.checkProject(LintDriver.kt:850)
at com.android.tools.lint.client.api.LintDriver.analyze(LintDriver.kt:378)
at com.android.tools.lint.LintCliClient.run(LintCliClient.java:238)
at com.android.tools.lint.gradle.LintGradleClient.run(LintGradleClient.java:230)
at com.android.tools.lint.gradle.LintGradleExecution.runLint(LintGradleExecution.java:291)
at com.android.tools.lint.gradle.LintGradleExecution.lintSingleVariant(LintGradleExecution.java:368)
at com.android.tools.lint.gradle.LintGradleExecution.analyze(LintGradleExecution.java:91)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Thanks!