添加插件org.chromium.bluetoothsocket后出现构建错误:
BUILD FAILED
C:\Program Files\Android\android-sdk\tools\ant\build.xml:720: The following erro
r occurred while executing this line:
C:\Program Files\Android\android-sdk\tools\ant\build.xml:734: Compile failed; see
the compiler error output for details.
...
C:\OpenServer\domains\testcordova\platforms\android\cordova\node_modules\q\q.js: 126
throw e;
^
Error code 1 for command: cmd with args: /s,/c,ant,debug,-f,C:\OpenServer\domain
s\testcordova\platforms\android\build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir
=ant-gen
ERROR building one of the platforms: Error: C:\OpenServer\domains\testcordova\pl
atforms\android\cordova\build.bat: Command failed with exit code 8
You may not have the required environment or OS to build this project
java编译错误:
...
[javac] constructor PluginResult.PluginResult(Status) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] C:\OpenServer\domains\testcordova\platforms\android\src\org\chromium
\ChromeBluetoothSocket.java:272: error: no suitable constructor found for Plugin
Result(Status,List<PluginResult>)
[javac] PluginResult result = new PluginResult(status, multipartMessage);
...
谢谢!