Hi,

>From the log, it shows lacking declaration of class CallbackContext, and the 
>class is available in crosswalk-cordova/framework. You can do a simple grep to 
>verify.
So I guessed it's the dependency setting issue.
Can you run an "ant clean" before "ant debug" to do a clean build. And please 
take a look whether the build is in sequence of 
xwalk_core_library/CordovaLib/your app .
If yes, can you paste the first compile error you met instead of the last one?

Thanks,
Shiliu.

-----Original Message-----
From: Dave Richardson [mailto:[email protected]] 
Sent: Thursday, June 5, 2014 4:18 PM
To: Wang, Shiliu; [email protected]
Subject: Re: [Crosswalk-help] Cordova Crosswalk 6 Problem

Hello,

thank you for your reply. When I do (inside 'platforms/android')

$ android update project -l CordovaLib -p ./

Resolved location of library project to: 
/root/Desktop/kitchensink/platforms/android/CordovaLib
Updated project.properties
Updated local.properties
Updated file ./proguard-project.txt
It seems that there are sub-projects. If you want to update them please use the 
--subprojects parameter.

$ ant debug

Unfortunately, it gives those java errors again.

Dave

On 5-6-2014 9:45, Wang, Shiliu wrote:
> Hi, Dave
>
> The compile error message seems like the dependency is not set correctly.
> Can you please run
> " cd platforms/android"
> " android update project -l CordovaLib -p ./"
>
> And then try "ant debug" again?
>
> Thanks,
> Shiliu.
>
> -----Original Message-----
> From: Crosswalk-help 
> [mailto:[email protected]] On Behalf 
> Of Dave Richardson
> Sent: Thursday, June 5, 2014 3:28 PM
> To: [email protected]
> Subject: [Crosswalk-help] Cordova Crosswalk 6 Problem
>
> Hello,
>
> Yesterday I've tried to get Crosswalk Cordova 6 to work, but I can't seem to 
> figure it out.
> Here are all the steps I take.
>
> Crosswalk Cordova 6.35.131.4 (ARM)
> Cordova 3.4.1
> Java 1.8.0_05
>
> $ cordova create kitchensink com.crosswalkproject.sample KitchenSink $ 
> cd kitchensink $ cordova platform add android
>
> $ rm -Rf www
> $ git clone
> https://github.com/krisrak/html5-kitchensink-cordova-xdk-af.git www
>
> I then add all the plugins using 'cordova plugin add ..'
>
> $ cordova build android
>
> Everything works, no errors.
> And to test that I've done everything right, I install this .APK on my phone 
> and it works.
>
> So now comes the Crosswalk part. I am still in the 'kitchensink' folder, and 
> continue.
>
> $ rm -Rf platforms/android/CordovaLib/*
>
> I put the crosswalk-cordova-6 ARM files in 
> /home/gin/android/crosswalk-cordova-6, so:
>
> $ cp -a /home/gin/android/crosswalk-cordova-6/framework/*
> platforms/android/CordovaLib/
> $ cp -a /home/gin/android/crosswalk-cordova-6/VERSION 
> platforms/android/
>
> Then building:
>
> $ cd platforms/android/CordovaLib/
> $ android update project --subprojects --path . --target "android-19"
> $ ant debug
>
>   From here everything is fine, then I do:
>
> $ cd ..
> $ ant debug
>
> Then I get a whole bunch of java errors (i am only showing the last ones).
>
>       [javac]   symbol: class CordovaPlugin
>       [javac]
> /root/Desktop/kitchensink/platforms/android/src/org/apache/cordova/geolocation/CordovaLocationListener.java:45:
> error: cannot find symbol
>       [javac]     public HashMap<String, CallbackContext> watches = new
> HashMap<String, CallbackContext>();
>       [javac]                            ^
>       [javac]   symbol:   class CallbackContext
>       [javac]   location: class CordovaLocationListener
>       [javac]
> /root/Desktop/kitchensink/platforms/android/src/org/apache/cordova/geolocation/CordovaLocationListener.java:46:
> error: cannot find symbol
>       [javac]     private List<CallbackContext> callbacks = new
> ArrayList<CallbackContext>();
>       [javac]                  ^
>       [javac]   symbol:   class CallbackContext
>       [javac]   location: class CordovaLocationListener
>       [javac] Note: Some input files use or override a deprecated API.
>       [javac] Note: Recompile with -Xlint:deprecation for details.
>       [javac] Note: Some messages have been simplified; recompile with 
> -Xdiags:verbose to get full output
>       [javac] 100 errors
>       [javac] 3 warnings
>
> BUILD FAILED
> /home/gin/android/adt/sdk/tools/ant/build.xml:720: The following error 
> occurred while executing this line:
> /home/gin/android/adt/sdk/tools/ant/build.xml:734: Compile failed; see the 
> compiler error output for details.
>
> Total time: 4 seconds
>
> So I am wondering, what am I doing wrong?
>
> Thanks,
> Dave
> _______________________________________________
> Crosswalk-help mailing list
> [email protected]
> https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
>
>

_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to