Status Update
Comments
to...@google.com <to...@google.com>
pa...@google.com <pa...@google.com>
tn...@google.com <tn...@google.com>
an...@google.com <an...@google.com> #3
Thanks for quick response.
But I found my report have misunderstanding content.
app/src/main/java/com/example/myapplication/MainActivity.kt:15: Warning: Resource IDs will be non-final by default in Android Gradle Plugin version 8.0, avoid using them in switch case statements [NonConstantResourceId]
val resId = R.id.text
~~~
This is not actual report, but expected
report.
And actual code have const
modifier at this field and I missed it in expected result.
And if android.nonFinalResIds
is turned on, this line will get error by kotlin compiler.
Because const val
field can be assigned by contant value only on kotlin compiler.
So, IMHO, const val
field for kotlin
And should check expected lint report about const val
field assignment from resource Id.
an...@google.com <an...@google.com> #5
The fixes for this issue are now also available in:
- Android Studio Ladybug | 2024.2.1 Patch 3
- Android Gradle Plugin 8.7.3
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
an...@google.com <an...@google.com> #6
The fixes for this issue are now also available in:
- Android Studio Ladybug Feature Drop | 2024.2.2 RC 1
- Android Gradle Plugin 8.8.0-rc01
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Description
AGP: 8.7.1
In Android 13, apps are required to request the `SCHEDULE_EXACT_ALARM` permission to use exact alarms. Users can grant this permission to apps that declare `<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />` in their Manifest. However, declaring this permission in the Manifest triggers the following lint warning: `Permission is only granted to system apps.` This warning seems to be outdated, as not declaring the permission in the manifest makes it impossible for users to grant this permission to the app.