To be honest, I have no idea what the error message means, nor do I know for sure if I am following the right steps to run the app, but I would appreciate any help on this before I put my head through the incredibly thin walls of my uni flat.
Thanks Aaron, I have managed to get this working by manually adding the android:usesCleartextTraffic=“true” attribute into the AndroidManifest when it is opened in Android Studio… The manifest didn’t seem to update when I made the changes in the config.xml file… Is there something I need to be doing before I re-run the app in Android emulator with “ionic cap run android”. Cheers!
I had the same exact error, but not when doing “ionic capacitor run android” but when doing “ionic capacitor run android -l” For the live updates.
I will give this fixes a try also. Thanks
Thanks. I guess I must be missing something else. Tried adding that but still wont work. Maybe I also need to add what as mentioned to the config.xml but I don’t have that file in my project.
I believe Capacitor projects don’t have a config.xml file only Cordova has. I’m running Ionic 5 with React and Capacitor and I have no config.xml file anywhere.
Getting back to the original error, I had the same issue and this post worked for me, it describes changes you need to make to the android manifest file, hope it works for you too