• 11
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

Unity error shows-no android device connected

I created a game in unity that I want to download on my phone. I plug in my Samsung galaxy s7 edge and click on build and run.

Build and Run

It starts building as usual, but then the error shows:

enter image description here

I don't know why this is happening. I have enabled USB debugging on my phone and did all the requirements-(click build number seven times, enable USB debugging) I also disabled and re-enabled the USB debugging but it didn't work. I even downloaded the SDK and JDK!

      • 1
    • Try disabling USB debugging and re-enabling. If you didn't also see an 'accept key' dialog on the Samsung, setup might not be complete. This very thing got me yesterday.

Few solutions to this problem. Someone already mentioned try plug/unplug. Sometimes you have to change option from charging to transfer files or other. Another solution that will probably work is killing adb server. Launch your OS console and type:

adb kill-server

then restart it by

adb start-server

This will force pc-phone communication to be restarted, and probably will solve your problem. Make sure the Android SDK path is correct in your Unity settings too.

  • 1
Reply Report