locked
Xamarin Android Player - Screenshot failed RRS feed

  • Question

  • User105885 posted

    Anyone else having issue saving a screenshot? Whenever i press the camera button in the emulator to save a screenshot, i get an error "Screenshot failed" without any explanation..

    Tuesday, September 15, 2015 6:18 AM

Answers

  • User51368 posted

    Hi Jacob. This is a known issue with the current version of XAP and the latest version of the Android SDK (specifically adb). If you type 'adb version' and it returns similar to the following;

    Android Debug Bridge version 1.0.32 Revision eac51f2bb6a8-android

    then it's highly likely that you are seeing the known issue. If there is no 'Revision ***-android' line then it could be a different issue.

    This is fixed in the version of XAP that is currently undergoing testing / QA. As a work around, if you downgrade the SDK Tools that will allow screenshot to function once more.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, September 15, 2015 8:08 AM
  • User51368 posted

    You're welcome.

    You'd need to run 'adb version' from the location that adb has been installed on your system. You could look around the settings in XS / VS for that, or if you look the registry (regedit.exe) you'll find the location in 'HKEYCURRENTUSER\Software\Novell\Mono for Android' If you then navigate to that location in command prompt (cmd.exe) and then type 'adb version' it should tell you what version of adb you have.

    Alternatively you could look at the SDK manager and it will tell you which revision of the SDK tools are installed, but that does not translate to the version string that I posted above.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, September 15, 2015 8:51 AM

All replies

  • User51368 posted

    Hi Jacob. This is a known issue with the current version of XAP and the latest version of the Android SDK (specifically adb). If you type 'adb version' and it returns similar to the following;

    Android Debug Bridge version 1.0.32 Revision eac51f2bb6a8-android

    then it's highly likely that you are seeing the known issue. If there is no 'Revision ***-android' line then it could be a different issue.

    This is fixed in the version of XAP that is currently undergoing testing / QA. As a work around, if you downgrade the SDK Tools that will allow screenshot to function once more.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, September 15, 2015 8:08 AM
  • User105885 posted

    Hi @MarkSimpson ! Thank you for your answer, i guess its just what i needed to hear.

    I wanna check if im running the version you talk about, but im unaware of where i have to type 'adb version', could you elaborate where this should typed? Thanks!

    Tuesday, September 15, 2015 8:13 AM
  • User51368 posted

    You're welcome.

    You'd need to run 'adb version' from the location that adb has been installed on your system. You could look around the settings in XS / VS for that, or if you look the registry (regedit.exe) you'll find the location in 'HKEYCURRENTUSER\Software\Novell\Mono for Android' If you then navigate to that location in command prompt (cmd.exe) and then type 'adb version' it should tell you what version of adb you have.

    Alternatively you could look at the SDK manager and it will tell you which revision of the SDK tools are installed, but that does not translate to the version string that I posted above.

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, September 15, 2015 8:51 AM
  • User164700 posted

    FWIW, I've been having that same problem but I just discovered that at least in my case, the screenshots actually succeeded -- it's just the status message text that is wrong. Also, it seems like as long as "{DeviceName} Screenshot 1.png" does not actually exist, the first screenshot succeeds (with the correct message text).

    Tuesday, October 20, 2015 3:29 PM
  • User105885 posted

    Hi @BillB , just thought i would let you know that the latest update to Xamarin Android Player fixed the issue for me and screenshots are now being saved correctly on Desktop with a successful message. Player version: 0.6.2

    Wednesday, October 21, 2015 6:39 AM