python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Not able to call localhost api using Retrofit
HTTP FAILED: java.net.UnknownServiceException: CLEARTEXT communication to localhost not permitted by network security policy
Getting this above mentioned issue while calling localhost api using retrof...
sushma1008
Votes: 0
Answers: 1
Retrofit 2.7.2 GSON error when using a retrofit call, the error is "Unable to invoke no-args constructor for class ". Could not find a solution
I am using android studio and kotlin attempting to make an API call using retrofit with gson library. I used the JSON to kotlin data class plugin to make my data classes. I have looked for solutions a...
Caffeine_Relapser
Votes: 0
Answers: 1
How to get data from multiple API Retrofit 2?
I created an app where data is loaded from server with the help of an API using Retrofit 2 . How can I fetch data from different API with the help of single API interface method?
If I request data fro...
user18481390
Votes: 0
Answers: 1
TimeoutCancellationException when running tests for a Retrofit coroutine in a Kotlin flow
I have a repository that creates a flow where I emit the result of a suspending Retrofit method. This works in the app, but I would like to run tests on the code.
I am using kotlinx-coroutines-test v1...
Eva
Votes: 0
Answers: 2