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

混淆报错,请问我该怎么处理 #28

Open
aa563011992 opened this issue Nov 17, 2020 · 0 comments
Open

混淆报错,请问我该怎么处理 #28

aa563011992 opened this issue Nov 17, 2020 · 0 comments

Comments

@aa563011992
Copy link

W/IModbusWorker: ModbusMaster init failed
com.serotonin.modbus4j.exception.ModbusInitException: java.lang.NullPointerException
at com.serotonin.modbus4j.serial.SerialMaster.init(SourceFile:84)
at com.serotonin.modbus4j.serial.rtu.RtuMaster.init(SourceFile:71)
at com.licheedev.modbus4android.ModbusWorker$5.call(SourceFile:299)
at com.licheedev.modbus4android.ModbusWorker$5.call(SourceFile:281)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: java.lang.NullPointerException
at java.io.File.fixSlashes(File.java:185)
at java.io.File.(File.java:134)
at android.serialport.SerialPort$Builder.(SourceFile:147)
at android.serialport.SerialPort$Builder.(SourceFile:132)
at android.serialport.SerialPort.newBuilder(SourceFile:129)
at com.licheedev.modbus4android.AndroidSerialPortWrapper.open(SourceFile:72)
at com.serotonin.modbus4j.serial.SerialMaster.init(SourceFile:75)
at com.serotonin.modbus4j.serial.rtu.RtuMaster.init(SourceFile:71) 
at com.licheedev.modbus4android.ModbusWorker$5.call(SourceFile:299) 
at com.licheedev.modbus4android.ModbusWorker$5.call(SourceFile:281) 
at java.util.concurrent.FutureTask.run(FutureTask.java:237) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 
at java.lang.Thread.run(Thread.java:841) 

#modbus
-keep class com.licheedev.** { ; }
-keep class com.serotonin.
* { ; }
-keep class android.serialport.
* { *; }

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

1 participant