Annotation Retrofit 2?

846 views
Skip to first unread message

Minh Nhật

unread,
Dec 22, 2019, 6:07:02 PM12/22/19
to AIDE - Android Java IDE
Hello !
Does AIDE support Annotation in the parameter? I tried using the Retrofit 2 library and I have the following code:

@GET("endpoint")
Call<ResponseList> getPost(@Query("userId") String userID,@Query("page") int page);

When I run the application, the apk was still build normally but when the application was opened it immediately stopped.

I opened logcat and I saw this line:

java.lang.IllegalArgumentException: No Retrofit annotation found. (parameter #1)


I have go Stackoverflow, Github and I have encountered similar cases but I cannot fix this problem, does AIDE not support Annotation in parameters?

thanks.

Hadi

unread,
Apr 30, 2020, 10:26:35 PM4/30/20
to AIDE - Android Java IDE
Reply all
Reply to author
Forward
0 new messages