Retrofit - throwing an exception java.lang.IllegalArgumentException: Only one encoding annotation is allowed
<p>Hello guys here is my sample code </p>

<pre><code>@FormUrlEncoded
@Multipart
@POST("registration.php")
Call&lt;Signup&gt; getSignupResponse(@Field("email") String email,
                               @Field("lname") String lname,
                               @Field("fname") String fname,
                               @Field("password") String password,
                               @Part("filename") File file);
</code></pre>

<p>Issue is when i am trying to add File Parameter as a Part its throwing me a error other wise if i use only @Field it works great but not working after i add @Part in it<br>
<b>- is there a no way to use @Field and @part together in Retrofit??</b><br>
<b>- If yes than tell a reason, If no tell me a proper way</b></p>

<p>I will appreciate your answer and thank you in advance </p>

<p>Note : Tell me a suggestions in comments before you vote.</p>