Fixed
Status Update
Comments
sp...@google.com <sp...@google.com>
tn...@google.com <tn...@google.com>
tn...@google.com <tn...@google.com> #2
can you share sample project to reproduce same issue.
an...@google.com <an...@google.com> #3
It happens in our company's real project and I am not able to share it.
It contains a Java module, 3 different Android module which one of them contains C/C++ native library that is being built by Cmake.
It is a BLE project with 100% kotlin code base by using latest Android build tools.
It contains a Java module, 3 different Android module which one of them contains C/C++ native library that is being built by Cmake.
It is a BLE project with 100% kotlin code base by using latest Android build tools.
Description
Annotating a java-method with @RequiresFeature will cause the linter to display a warning whenever the method is used in a kotlin or java source code file.
Annotating a kotlin-method the same way will not have any effect though.
STEPS TO REPRODUCE:
1. Annotate any method in a kotlin source file with @RequiresFeature("
2. Use this method in the same or a different file
3. Check for linter warning / Run inspection "Requires Feature" --> There is none
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 read
all required information.
------------------
Studio Build:
Android Studio Koala | 2024.1.1 Patch 2
Build #AI-241.18034.62.2411.12169540, built on August 1, 2024
Version of Gradle Plugin: 8.5.2
Version of Gradle: 8.7
Version of Java: 17.0.11
OS: Windows 10