MobileChromeApps / cordova-plugin-chrome-apps-bluetoothSocket

BSD 3-Clause "New" or "Revised" License
5 stars 4 forks source link

Error cordova build for android platform #1

Open lonewi opened 9 years ago

lonewi commented 9 years ago

I get a build error after adding the plugin:

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

And a java compile error:

...
[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);
...

According to the plugin description: Engine Number must be >=3.0.0. My version is 4.2.0.

255kb commented 9 years ago

Same compilation error here.