Skip to content
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

After build the apk and try to open it on phone, it stuck on the loading Screen #31

Open
SANKARAMDAS opened this issue Sep 21, 2021 · 1 comment

Comments

@SANKARAMDAS
Copy link

SANKARAMDAS commented Sep 21, 2021

After build the apk and try to open it on phone, it stuck on the loading Screen, on console I get this error-
" E/flutter (21270): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: SocketException: Failed host lookup: 'api.openweathermap.org' (OS Error: No address associated with hostname, errno = 7)
E/flutter (21270): "

I checked the internet and added these 2 line manually-
uses-permission android:name="android.permission.INTERNET"
uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"

I already gave the permission to the app to access the internet on my phone. But still no luck. I checked the Api link- it's perfect on issue on it.
Any solution??

@htoopyaelinn56
Copy link

htoopyaelinn56 commented Mar 27, 2022

Not sure if you solved this problem. I also encountered this and got it by giving this permission
uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" in android manifest file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants