Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

startScan报错:UndeclaredThrowableException #106

Open
baowenqing opened this issue Nov 2, 2022 · 4 comments
Open

startScan报错:UndeclaredThrowableException #106

baowenqing opened this issue Nov 2, 2022 · 4 comments

Comments

@baowenqing
Copy link

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.rct.ros/com.rct.ros.ui.main.activity.DefaultPrinterActivity}: java.lang.reflect.UndeclaredThrowableException
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2666)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2727)
    at android.app.ActivityThread.-wrap12(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1478)
    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)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:892)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:782)
 Caused by: java.lang.reflect.UndeclaredThrowableException
    at $Proxy1.startScan(Unknown Source)
@f262866551
Copy link

ble.released();会出这个

@Wodner
Copy link

Wodner commented Apr 25, 2024

解决了吗

@f262866551
Copy link

解决了吗
没有

@Jamishon
Copy link

I met the same problem .

java.lang.RuntimeException: Unable to start activity ComponentInfo{cn.wywk.yiot/cn.wywk.yiot.device.bluetooth.BleActivity}: java.lang.reflect.UndeclaredThrowableException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3993)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4173)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:114)
at android.app.servertransaction.TransactionExecutor.executeNonLifecycleItem(TransactionExecutor.java:231)
at android.app.servertransaction.TransactionExecutor.executeTransactionItems(TransactionExecutor.java:152)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:93)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2595)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loopOnce(Looper.java:232)
at android.os.Looper.loop(Looper.java:317)
at android.app.ActivityThread.main(ActivityThread.java:8592)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)
Caused by: java.lang.reflect.UndeclaredThrowableException
at $Proxy3.startScan(Unknown Source)
at cn.com.heaton.blelibrary.ble.Ble.startScan(Ble.java:157)

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

No branches or pull requests

4 participants