PeripherialManager.getInstance() throws java.lang.RuntimeException: Stub

Internet of Things IoT Frameworks 2 years ago

0 0 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating
_x000D_ _x000D_ I am trying to use com.google.android.things:androidthings for UART communication. The problem I get is that PeripheralManager.getInstance() throws java.lang.RuntimeException: Stub!. I am using a device Rockchip RK3368 with Android SDK 25. I was following the guide from Android documentation: https://developer.android.com/things/sdk/pio/uart PeripheralManager manager = PeripheralManager.getInstance(); The stacktrace is the following: W/System.err: java.lang.RuntimeException: Stub! at com.google.android.things.pio.PeripheralManager.getInstance(PeripheralManager.java:21) at com.eurotronik.library.common.serial.SerialClass.(SerialClass.java:38) at com.eurotronik.nursetabmode.serialport.SerialPortService.onCreate(SerialPortService.java:112) at android.app.ActivityThread.handleCreateService(ActivityThread.java:3192) at android.app.ActivityThread.-wrap5(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1568) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6121) at java.lang.reflect.Method.invoke(Native Method) What does Stub! mean and how do I fix this?

Posted on 16 Aug 2022, this text provides information on IoT Frameworks related to Internet of Things. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (0)

Post Answer

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.

Important Internet of Things Links