DEV Community

Discussion on: Android-Kotlin,Get data from restful API having multiple JSON objects.

Collapse
 
raymond6289 profile image
Raymond6289

Thank you very much for this guidance. I have a query. I tried to use a variable in the @GET expression but get the following compiler error:

“Only ‘const val’ can be used in constant expressions.”

Can you advise me how to get around this problem please? Thank you.