Search Unity

  1. All Pro and Enterprise subscribers: find helpful & inspiring creative, tech, and business know-how in the new Unity Success Hub. Sign in to stay up to date.
    Dismiss Notice
  2. Dismiss Notice

Cannot Debug on Android Device from Visual Studio

Discussion in 'Android' started by iddqd, Dec 1, 2020.

  1. iddqd


    Apr 14, 2012
    Hi there

    Just came here to post a solution to this issue for anybody else with this issue in future.

    If Visual Studio does not list the AndroidPlayer when you select Debug > Attach Unity Debugger, then perhaps this will help.

    In VS, go to Tools > Options and set the SDK Path manually:


    You can find the path from "Unity > Edit > Preferences > External Tools > Android SDK..."

    My path was blank, which should work but this seems like a bug or a confusion due to a previously installed SDK (before it was bundled with Unity).

    Hope this helps somebody.
    douglassophies likes this.
  2. fkhaller


    Nov 18, 2020
    Are you using a emulator or a connected device in this case? I would love to have a debugger attached to a connected device but I have not found a way to do it.

    Edit : Never mind I did not have the correct build config. This was very helpful Thanks!
    Last edited: Dec 1, 2020
    iddqd likes this.