CommandInvokationFailure: Unable to install APK to device

Hey, working with Oculus quest 2, Recently migrated the project from Mac to windows, with Version Control Installed the proper version, with Android SDK and NDK, with all the proper set up Plugging in the headset with USB-C cable, allowing date transfer, clicking Build And just when its about to finish building, if fires these 2 errors I already tried reinstalling the version, and even separetly installing the Android SDK, but nothing seems to work any help is incredibly valuable :>

Note : I open the project with Android platform selected, but i also tried Windows

CommandInvokationFailure: Unable to install APK to device. Please make sure the Android SDK is installed and is properly configured in the Editor. See the Console for more details.
C:\Program Files\Unity\Hub\Editor\2021.3.13f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\adb.exe -s …

  1. Worth to update to the latest 2021LTS for sure. It’s more stable and might have better performance.
  2. Did you install the android module, and both submodules from unity hub?
    2.1 in preferences - external tools, did you select included with Unity?

CommandInvokationFailure while attempting to install the APK to the device. This issue may stem from various factors such as compatibility issues, insufficient device storage, or connectivity problems. Troubleshooting each potential cause step by step could resolve the issue and enable successful installation.

Is the apk generated? and is only the installation failing from within unity? if that’s the case it could be that because of switching development environment the signatures of the self signed certificate Unity uses to sign the APK file is different. The ADB install xxx.apk (this is the last step unity takes after building) would then fail with an obscure message. to fix this just do an uninstall of your app first and then try building again on your new dev environment.