To implement the login function in the application, I use the interface as a component and I want to register the header and the post method, but when writing @POST or @HEADERS, I underline with red and write a message that annotations are not allowed here, I already created a new project, cleaned it, did rebuild cleared the cache but nothing helps. If someone had the same problem and he decided it I will be grateful for the help.

  • 1. Open (find on the network) an example with anotations in android - see how they are recorded. 2. Post the code snippet where you have an error, then you can show where the error was made (so that you can see the connected libraries, function, advertisement and other parts of the code important for this question). - nick_n_a
  • I did not understand anything ((((which example with anotations ?? where to get the fragment ?? I just started to underline red for no reason at all, maybe I just lose sight of something? - Andrew Goroshko
  • This is something the studio is stupid))))))) I immediately inserted all the code of the individual typed and does not emphasize anything, the weasels disturbed me. - Andrew Goroshko

0