Software Archive
Read-only legacy content
17061 Discussions

intel.xdk.device do not compile on server!

Thomas_V_1
Beginner
913 Views

Hi, I can not get the intel.xdk.device plugin to compile on server with DEBUG, TEST(mobile) or BUILD. This is for Android, ver 2548, cli 5.1.1. I tried two different projects and I get the same fault (From DEBUG see below). Can anyone verify if the problem so I know its not my fault? 

 

-compile:
    [javac] Compiling 16 source files to .../appanalyzer/platforms/android/bin/classes
    [javac] .../appanalyzer/platforms/android/src/com/intel/xdk/device/Device.java:277: error: cannot find symbol
    [javac]         final ViewGroup parent = (ViewGroup)webView.getView().getParent();
    [javac]                                                    ^
    [javac]   symbol:   method getView()
    [javac]   location: variable webView of type CordovaWebView
    [javac] .../appanalyzer/platforms/android/src/com/intel/xdk/device/Device.java:378: error: cannot find symbol
    [javac]         webView.getView().setOnKeyListener(webViewListener);
    [javac]                ^
    [javac]   symbol:   method getView()
    [javac]   location: variable webView of type CordovaWebView
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: .../appanalyzer/platforms/android/src/com/intel/xdk/device/Device.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 2 errors

BUILD FAILED
.../android-sdk-linux/tools/ant/build.xml:720: The following error occurred while executing this line:
.../android-sdk-linux/tools/ant/build.xml:734: Compile failed; see the compiler error output for details.

Total time: 6 seconds

.../appanalyzer/platforms/android/cordova/node_modules/q/q.js:126
                    throw e;
                          ^
Error code 1 for command: ant with args: release,-f,.../appanalyzer/platforms/android/build.xml

0 Kudos
5 Replies
John_H_Intel2
Employee
913 Views

Do you have other plugins included that could be conflicting with the intel.xdk.device plugin?

Try creating a new blank app, add the device plugin, and try building that. It worked for me.

 

0 Kudos
Thomas_V_1
Beginner
913 Views

Thanks John. 

I made a new test project with only inte.xdk.device and I have the same fault. 

hmmm

0 Kudos
Thomas_V_1
Beginner
913 Views

Downgraded to cli 4.1.2 and the test project compiles.

0 Kudos
Thomas_V_1
Beginner
913 Views

also downgraded intel.xdk.device 1.2.5 to 1.2.4.  

for my project i downgraded

cli to 4.1.2

and

device to 1.2.4

and 

cordova-plugin-statusbar1.0.0  to   org.apache.cordova.statusbar0.1.9

 

and it works. 

0 Kudos
Thomas_V_1
Beginner
913 Views

The app is a lot more stable and the bugs I see are my bad programming(for now). 

Thanks for the help. 

0 Kudos
Reply