dhakerShiv / cordova-plugin-modbus-tcp

Apache License 2.0
1 stars 3 forks source link

Compile Error #1

Open jamalkhan2k6 opened 6 years ago

jamalkhan2k6 commented 6 years ago

I get this error when trying to build:


:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no p
revious execution, etc.).
D:\Phonegap Work\first\platforms\android\src\com\ebw\cordova\ModbusClient\Modbus
Client.java:561: error: incompatible types: possible lossy conversion from int t
o byte
            data[13 + i / 8] = singleCoilValue = (int)((byte)(CoilValue << i % 8
 | singleCoilValue));
                                               ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
:compileDebugJavaWithJavac FAILED

BUILD FAILED

Total time: 3.072 secs
Error: cmd: Command failed with exit code 1 Error output:
D:\Phonegap Work\first\platforms\android\src\com\ebw\cordova\ModbusClient\Modbus
Client.java:561: error: incompatible types: possible lossy conversion from int t
o byte
            data[13 + i / 8] = singleCoilValue = (int)((byte)(CoilValue << i % 8
 | singleCoilValue));
                                               ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
winniezz commented 1 year ago

+1