while using build and run option getting this error i can take apk using build option unity version : 2017.4.2f2 android sdk version : 27.0.2
can you build (without the "and run") do you have the unity app? is it running when you build and run? have you selected "any android device connected" somewhere in the settings?(not sure where anymore, I just know what to look for) if nothing else works, save everything, close everything down, open unity on android, then open your project try again
connect your phone to your computer with usb open up your command prompt cd to wherever your sdk is type "adb devices"
I'm seeing the same issue. Unity editor is able to see my connected device. An apk is built but the editor is failing to deploy to the device.
What does "adb devices" return? For me, it's located where I installed my AndroidSDK under /platform-tools/adb.exe
The problem is that my USB connected device is still not registering with the Unity Profiler. Using the 'Build and Run' option has worked for me in the past.
this solution fixed it for me: https://support.honeywellaidc.com/s/article/How-to-fix-adb-devices-shows-unauthorized-device