Skip to content
This repository has been archived by the owner on Dec 7, 2020. It is now read-only.

NullPointerException when running Android "Screenshot2" #5

Open
mkm12789 opened this issue Feb 27, 2018 · 3 comments
Open

NullPointerException when running Android "Screenshot2" #5

mkm12789 opened this issue Feb 27, 2018 · 3 comments

Comments

@mkm12789
Copy link

When stepping through the failing bitbar image recognition demo I notice I'm getting the following error when running the command line screenshot2 app for android:

Exception in thread "main" java.lang.NullPointerException
at com.android.ddmlib.MonitorThread.wakeup(MonitorThread.java:453)
at com.android.ddmlib.MonitorThread.quit(MonitorThread.java:461)
at com.android.ddmlib.AndroidDebugBridge.terminate(AndroidDebugBridge.java:293)
at com.android.screenshot.Screenshot.main(Screenshot.java:280)

I'm using version 26.1.1 of Android SDK tools and JDK 8u151

Has anyone experienced this?

@ShivaniThaman
Copy link

Same issue.. No solution

@adityabhargav
Copy link

Mee too facing same issue::

java.io.IOException: Cannot run program "screenshot2": error=2, No such file or directory

@szprutamich
Copy link
Contributor

Do you have it in android-sdk/tools/bin/ ? If so it should be enough to add it to the PATH.
It can be also installed (for Ubuntu):
sudo apt install android-platform-tools-base

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants