Unreal engine cannot see the android phone but android studio can see it

I’m having trouble running my game on an android device. unreal enginie can’t see my device but in android studio it is visible and i can run the apps. cmd “adb devices” also shows the active device. what is wrong? please help. I have already wasted 3 hours looking for an answer