I dealt wis this issue for many hours, i tried everything mentioned here.
After reading this documentation and installing the APK from command line I played a bit with the configurations on the port used by adb.
Finally this settings made it work (with a invalidate caches restart) adb settings using automatically start and manage server
I am on Mac btw