bitbar / opencv-library

Apache License 2.0
8 stars 7 forks source link

NullPointerException when running Android "Screenshot2" #5

Open mkm12789 opened 6 years ago

mkm12789 commented 6 years ago

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 commented 5 years ago

Same issue.. No solution

adityabhargav commented 4 years ago

Mee too facing same issue::

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

szprutamich commented 4 years ago

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