-
Notifications
You must be signed in to change notification settings - Fork 7.3k
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Retrofit not call in android pie #2925
Comments
Not enough information to reproduce. We're using Pie. Can you isolate into a standalone test case? |
Please help me out ApiInterface.java `public interface ApiInterface {
}` ExamplesModel.java `package techhunt.com.androidexamples.Model; import com.google.gson.annotations.SerializedName; import java.io.File; /**
public class ExamplesModel implements Serializable {
}` callMethod `public void getExamples() {
Thank you. |
i m also face this problem.any solution? |
Android 9.0 disables cleartext traffic by default: https://developer.android.com/about/versions/pie/android-9.0-changes-28#framework-security-changes. Use HTTPS or explicitly enable unsafe HTTP calls. |
Just add this line in AndroidManifest.xml
|
android:usesCleartextTraffic="true" thank you .This code is working |
Hi android:usesCleartextTraffic="true". This code is Working. Thanks & Regards, Mahesh, Android Developer, SystimaNX IT Solutions Pvt Ltd, M : +91-8754048942, Confidentiality Notice: This email (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and unlawful. If you are not the intended recipient, please notify the sender by reply email and destroy all copies of the original message. Thanks for your cooperation. ---- On Thu, 22 Nov 2018 09:42:31 +0530 TechHunt Developers <notifications@github.com> wrote ---- Just add this line in AndroidManifest.xml android:usesCleartextTraffic="true" — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
|
Thank's |
Hii @JakeWharton |
What kind of issue is this?
get fixed. Here’s an example:
`Retrofit retrofit = new Retrofit.Builder()
.baseUrl(ApiInterface.BASE_URL)
.addConverterFactory(GsonConverterFactory.create())
.build();
The text was updated successfully, but these errors were encountered: