react-native-SerialPort icon indicating copy to clipboard operation
react-native-SerialPort copied to clipboard

use error java.lang.Double

Open wangfpp opened this issue 6 years ago • 2 comments

react-native info

System: OS: Linux 5.0 Ubuntu 19.04 (Disco Dingo) CPU: (8) x64 Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz Memory: 537.14 MB / 15.55 GB Shell: 5.0.3 - /bin/bash Binaries: Node: 10.16.2 - /usr/local/bin/node Yarn: 1.16.0 - /usr/local/bin/yarn npm: 6.9.0 - /usr/local/bin/npm SDKs: Android SDK: API Levels: 22, 23, 24, 25, 26, 27, 28, 29 Build Tools: 26.0.2, 28.0.3 System Images: android-22 | Intel x86 Atom, android-23 | Intel x86 Atom, android-25 | Google APIs ARM 64 v8a, android-27 | Intel x86 Atom, android-27 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom npmPackages: react: 16.9.0 => 16.9.0 react-native: 0.61.5 => 0.61.5 npmGlobalPackages: react-native-cli: 2.0.1

ERROR Message

java.lang.Double cannot be cast to java.lang.String

没有更多的报错信息了

wangfpp avatar Apr 22 '20 05:04 wangfpp

demo 的例子写错了 串口的波特率 应该是字符串的

react-native info

System: OS: Linux 5.0 Ubuntu 19.04 (Disco Dingo) CPU: (8) x64 Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz Memory: 537.14 MB / 15.55 GB Shell: 5.0.3 - /bin/bash Binaries: Node: 10.16.2 - /usr/local/bin/node Yarn: 1.16.0 - /usr/local/bin/yarn npm: 6.9.0 - /usr/local/bin/npm SDKs: Android SDK: API Levels: 22, 23, 24, 25, 26, 27, 28, 29 Build Tools: 26.0.2, 28.0.3 System Images: android-22 | Intel x86 Atom, android-23 | Intel x86 Atom, android-25 | Google APIs ARM 64 v8a, android-27 | Intel x86 Atom, android-27 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom npmPackages: react: 16.9.0 => 16.9.0 react-native: 0.61.5 => 0.61.5 npmGlobalPackages: react-native-cli: 2.0.1

ERROR Message

java.lang.Double cannot be cast to java.lang.String

没有更多的报错信息了 demo 的例子写错了 串口的波特率 应该是字符串的

Mase9527 avatar May 06 '20 06:05 Mase9527

请问问题解决了吗,我们调整成字符串并没有打开端口

Eleven1108 avatar Aug 05 '21 06:08 Eleven1108