Answer the question
In order to leave comments, you need to log in
What am I doing wrong in Android development in Kotlin language?
There is a task from the application to request data from the server (login) and print it.
1. In build.gradle I include retrofit
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
<uses-permission android:name="android.permission.INTERNET" />
interface APIService {
@get:GET("http://api.sample.com/users/user/list")
val users: Call<Users?>?
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question