#[SOLVED] flutter android emulator not working with Appwrite
36 messages · Page 1 of 1 (latest)
Are you getting any errors in the logs? Are you able to browse with the chrome app in the emulator?
do you mean if I can launch it on web, and no I don't seem to be getting any errors
I'm asking if you're able to access the internet on your emulator
Also I'm asking about the error in case an exception is causing the mobile app to fail
in debug console
Yes. Can you share your authentication code? Also which version of appwrite are you using as well as the client sdk version?
Yes, I will send it later, thanks
@hoary plinth Did you add internet permission to the android manifest file?
If not, make sure to add it and rebuild the APK (you will probably need to uninstall it from emulator).
I haven't added it but it has internet connection, or does it not matter?
You still need to add such permission
like this ?
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:label="tripplanner24"
I think yes, specifically the line
<uses-permission android:name="android.permission.INTERNET" />
yeah I put it but still my android emulator doesn't work
Are you using flutter?
yes
If so, you need to do flutter clean flutter pub get uninstall the app from emulator and then run it again
ok, I will try
If it's still not working after that, show the error you're getting
this is what's showing up in debug console and it just keeps spinning in emulator
I/flutter ( 8308): Appwrite error during account.get(): AppwriteException: , ClientException with SocketException: Failed host lookup: 'cloud.appwrite.io' (OS Error: No address associated with hostname, errno = 7)
I think this could be the error
I did not have adb set up properly and for some reason after setting it up the android emulator started working with app write
Check also if you have added the platform to the console
I have added flutter to the console
should it not include windows, android, ios, etc.?
You need to create different platforms for the different platforms
In console you can add different platform in flutter such as macos windows android iOS linux so try that
like this right?
Yes
In android did add some request in the AndroidManifest file
cc: @hoary plinth
@hoary plinth Is your problem solved?
Yes
Can you share what you did to solve this problem so that in future if anyone face this similar issue they can solve the issue fast.