I'm using AOSP source file.I have created new service in Android 9 & it was running. When I tried to reuse the same in Android 11, getting API Lint Error from auto generated file (out folder)
1. IHelloworldService.java:43: error: Methods calling system APIs should rethrow RemoteException
as RuntimeException
(but do not list it in the throws clause) [RethrowRemoteException]
2. IHelloworldService.java:15: error: Raw AIDL interfaces must not be exposed: Stub extends Binder [RawAidl]
3. IHelloworldService.java:10: error: Missing nullability on method asBinder
return [MissingNullability]
I unable to try what is emitted in the terminal, (method 1 is not possible, since autogenerated file; method 1 is not possible, since mentioned folder is not available )
Can anyone help me with how to solve this? stuck for long time