Android: Clean up lint warnings and other warnings to get build success#12143
Android: Clean up lint warnings and other warnings to get build success#12143ejona86 merged 17 commits intogrpc:masterfrom
Conversation
|
@ejona86 @shivaspeaks Can you please review. |
|
@Sangamesh1997 Can you provide the build error log that you are fixing with this PR? In the failing build.log of PR #12040 I don't see any errors about @TargetApi for example. |
|
@kannanjgithub In the build log of PR #12040 , I observed that the only visible lint error was OldTargetApi. However, when I ran the lint check locally in (lint report.html), it also flagged other warnings like InlineApi, ObseleteSdkInt and NewApi, as mentioned by Eric earlier. So in this PR, I've fixed all these together to ensure build passes cleanly and is future-proof. |
|
@Sangamesh1997 can you share that lint report.html? |
shivaspeaks
left a comment
There was a problem hiding this comment.
Are we working on silencing? I thought the discussion happened to upgrade and fix in the #12040 (comment)
@shivaspeaks I have addressed and cleared all the lint warnings in #12143, which resolves the issue tracked in #6868. |
Does it cause any problem if you set targetSdkVersion to the latest available even while the AGP is not upgraded yet? @Sangamesh1997 |
37f84d1 to
94532a6
Compare
…xed_12142 # Conflicts: # binder/src/main/java/io/grpc/binder/internal/ServiceBinding.java
@kannanjgithub I tried and got a build failure with 'AAPT2 error: Android resourse linking failed'. SDK 35/36 introduced internal changes in resource formats. The current AGP versions cant handle these changes during resource linking. that's why I suspect that using compileSdk>34 is unsafe unless AGP is upgraded to 8.x.+. |
Worked on clearing the lint warnings (OldTargetApi, ObsoleteSdkInt, InlinedApi, NewApi) Fixes grpc#12142

Fixes : #6868 #12142
Worked on clearing the lint warnings (OldTargetApi, ObsoleteSdkInt, InlinedApi, NewApi)