Back

Failed host lookup

  • 0
  • Flutter
kanhaiya lal bohra
8 May, 2023, 17:38

in emulator everything work fine but when i build the apk and trying on my device im getting error failed host lookup error im using appwrite cloud

TL;DR
The user is experiencing a "failed host lookup" error when trying to run their app on a device. They have tried cleaning and rebuilding the project and adding internet permissions to the manifest, but the error persists. They also question whether removing ".setSelfSigned(status: true)" would help. It is mentioned that everything works fine in the emulator, but not on a device. The user is using Appwrite Cloud. Solution: It is suggested that the user does not need to remove ".setSelfSigned(status: true)" and it shouldn't make a difference. One possible solution is to check if the device has internet connectivity and ensure that the
Drake
8 May, 2023, 17:50

Did you update your release android manifest to grant internet permissions?

kanhaiya lal bohra
8 May, 2023, 17:56

Yes done

kanhaiya lal bohra
8 May, 2023, 17:56
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
kanhaiya lal bohra
8 May, 2023, 17:56

i have added this

kanhaiya lal bohra
8 May, 2023, 17:59

do i have to remove this .setSelfSigned(status: true);?

Drake
8 May, 2023, 18:02

if you're using cloud, you don't need that. regardless, it shouldn't make a difference

Drake
8 May, 2023, 18:02

clean and rebuild?

Also, would you please share your exact full error?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more