Fixed
Status Update
Comments
dy...@google.com <dy...@google.com>
ba...@google.com <ba...@google.com>
ba...@google.com <ba...@google.com>
bl...@google.com <bl...@google.com>
bl...@google.com <bl...@google.com>
ga...@linecorp.com <ga...@linecorp.com> #2
Thanks for fixing this issue.
It seems this issue was fixed at
Is it possible to apply this on stable branch?
bl...@google.com <bl...@google.com> #3
Thanks for reporting this issue - we can cherry-pick the fix to Electric Eel Beta 2 or 3.
ga...@linecorp.com <ga...@linecorp.com> #4
FYI:
I created
And applied
And lint can raise errors as intended.
> Task :app:lintDevelopDebug FAILED
app/src/main/java/com/example/myapplication/TextViewUtil1.java:8: Error: Comparing resource types (@StringRes) other than equality is dangerous and usually wrong; some resource types set top bit which turns the value negative [ResourceType]
if (resId > 0) {
~~~~~~~~~
app/src/main/java/com/example/myapplication/TextViewUtil2.kt:8: Error: Comparing resource types (@StringRes) other than equality is dangerous and usually wrong; some resource types set top bit which turns the value negative [ResourceType]
if (resId > 0) {
~~~~~~~~~
Explanation for issues of type "ResourceType":
Ensures that resource id's passed to APIs are of the right type; for
example, calling Resources.getColor(R.string.name) is wrong.
Description
DESCRIBE THE ISSUE IN DETAIL: behavior change of resource compiler on my app.
I'm trying to update minSdk to 26,
and want to fix issues related with
For java source codes, lint checker raise ResourceType error,
but for kotlin source codes, lint checker did not raise any error.
STEPS TO REPRODUCE:
ATTACH SCREENSHOTS/RECORDINGS OF THE ISSUE
ATTACH LOG FILES (Select Help > Show Log in Files, or Show Log in Finder on a Mac)
IMPORTANT: Please readhttps://developer.android.com/studio/report-bugs.html carefully and supply
all required information.
Studio Build: Any
Version of Gradle Plugin: 7.2.2 or 7.3.0
Version of Gradle: 7.5
Version of Java: OpenJDK 11 / 17
OS: Any