Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android build warnings #1690

Open
vunder opened this issue Jan 3, 2025 · 2 comments
Open

Android build warnings #1690

vunder opened this issue Jan 3, 2025 · 2 comments
Assignees
Labels
bug something isn't working

Comments

@vunder
Copy link

vunder commented Jan 3, 2025

Gradle Plugin issue

  • SDK Version 0.6.1
  • Gradle Wrapper 8.9
  • Android Gradle Plugin 8.7.2
  • Android Studio Android Studio Ladybug | 2024.2.1 Patch 3 (Build #AI-242.23339.11.2421.12700392, built on November 22, 2024)

Describe the bug
During the build there could be following warnings in the log

A connection to https://***/ was leaked. Did you forget to close a response body? To see where this was allocated, set the OkHttpClient logger level to FINE: Logger.getLogger(OkHttpClient.class.getName()).setLevel(Level.FINE);

Sometimes even two during the build

@vunder vunder added the bug something isn't working label Jan 3, 2025
@abhaysood
Copy link
Contributor

abhaysood commented Jan 3, 2025

I'm unable to see the same log for the sample app. Does this happen every time for you or only in certain conditions?

However, I do see that response.close() is not being explicitly called here, but I'm not sure if this is causing the issue or not. I doubt because the response body is not being read.

val response = client.newCall(request).execute()
if (!response.isSuccessful) {
logError(response)
}

@abhaysood abhaysood self-assigned this Jan 3, 2025
@abhaysood abhaysood moved this to In Progress in Measure Roadmap Jan 3, 2025
@vunder
Copy link
Author

vunder commented Jan 3, 2025

Not sure about certain conditions. I'll look closer next time will face this message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something isn't working
Projects
Status: In Progress
Development

No branches or pull requests

2 participants