When I try to build and run, this error message pops up:
Error building Player: Win32Exception: ApplicationName=‘C:/Users/Jeanette/Desktop/Aaron’s Files/Android SDK\platform-tools\adb.exe’, CommandLine=‘devices’, CurrentDirectory=‘C:/Users/Jeanette/Desktop/Aaron’s Files/Android SDK’
I haven’t been able to figure this out. Any help would be appreciated.
P.S. Everything goes well until this part “trying to locate suitable android device”
The problem is your Windows (PC) cannot connect to your Android device.
Normally the way to make sure the connection is using adb command : “adb devices”
$ adb devices
List of devices attached
On your PC, it might be
C:/Users/Jeanette/Desktop/Aaron’s Files/Android SDKplatform-toolsadb.exe devices
This is Android issue, instead of Unity.
For more information about adb, please visit Android Debug Bridge (adb) | Android Studio | Android Developers
Your phone must be on developer mode to make adb connect the phone.
trying to locate suitable android device meaning there is no attached android device to install.
there is some checklist that you need to perform before you build and run your
- check that
adb.exe exists in
ApplicationName parameter in your error message
- make sure you have downloaded and intalled
Google USB Driver in Android SDK Manager
- make sure that your device Connected to your PC with Debugging USB Enabled and your PC can recognize them using this command :
the number 2 and 3 can be avoided if you using the
Build button, however, you need to move your
APK file manually to your device before you can test it.