Davide, thanks for the thorough information. Just a couple of quick questions: have you tried the same process with Cordova 3.3 and Crosswalk 5? Those are the versions used in the tutorial.
Also: are you on Linux, Windows or Mac? I haven't tested the instructions with later versions of Crosswalk/Cordova or on platforms other than Linux, where they may not be applicable. (My plan is to update the instructions for Crosswalk 6 once it is stable.) I will test them again myself tomorrow (on Linux, and with the versions given in the instructions) and fix them if they are incorrect. If you do manage to get things to work for your environment, I would heartily welcome contributions to the documentation for other versions. Elliot On 22 May 2014 09:52, Zhang, Belem <[email protected]> wrote: > Hi Davide, > > > > Thank you for trying Crosswalk based Cordova, this issue can be reproduced > when run the second “$ant debug” in “/path/to/platforms/android/” folder, > we will investigate this issue in > XWALK-1769<https://crosswalk-project.org/jira/browse/XWALK-1769>. > > > > We will inform you when there are updates. J > > > > BR > > Belem > > > > *From:* Crosswalk-help [mailto: > [email protected]] *On Behalf Of *davide > *Sent:* Thursday, May 22, 2014 3:41 PM > *To:* [email protected] > *Subject:* Re: [Crosswalk-help] Cannot migrate a cordova project > > > > HI Elliot, > > I have just tried to use cordova 3.4 and 3.5 and still got the same > issues. Just to be sure that is not depended on my project, I just created > a new cordova project here are the steps: > > Installed cordova 3.4 > > $ sudo npm install -g [email protected] > > create a sample project > > $ cordova create hello com.hello hello > Creating a new cordova project with name "hello" and id "com.hello" at > location "/home/davide/work/ideaProjects/hello" > > $ cd hello > $ cordova platform add android > > Launch the emulator > > $ cordova emulate > > Project is compiling without issue and runs in the emulator. > > Now I am trying to use crosswalk [following the steps: > https://crosswalk-project.org/#documentation/cordova/migrate_an_applicationto > migrate the cordova project to crosswalk.]: > > $ cd platforms/android/ > $ rm CordovaLib/* -rfv > > just to be sure check the android_home var: > > $ echo $ANDROID_HOME > /home/davide/android-sdk-linux > > copy the required files [I'm the platform/android/ ] > $ cp ~/Downloads/crosswalk-cordova-6.35.131.4-arm/framework/* CordovaLib/ > -av > > copy the VERSION file > $ cp ~/Downloads/crosswalk-cordova-6.35.131.4-arm/VERSION . > > upgrading the project android version: > > $ android update project --subprojects --path . --target "android-19" > > Updated project.properties > Updated local.properties > build.xml: Found version-tag: custom. File will not be updated. > Added file ./proguard-project.txt > Updated project.properties > Updated local.properties > build.xml: Found version-tag: custom. File will not be updated. > Updated file ./xwalk_core_library/proguard-project.txt > > $ ant debug > [attached results as ant_debug_1.txt.gz] > > $ cd .. > > $ ant debug > ant_debug_2.txt > [attached results as ant_debug_2.txt.gz] > > BUILD FAILED > /home/davide/android-sdk-linux/tools/ant/build.xml:720: The following > error occurred while executing this line: > /home/davide/android-sdk-linux/tools/ant/build.xml:734: Compile failed; > see the compiler error output for details. > > Total time: 2 seconds > > IS there any more info that I can provide ? > > -- > > Regards, > Davide > > *POGED GmbH www.poged.com <http://www.poged.com>* > > T: +49(0)40 / 609 400 475 > F: +49(0)40 / 609 400 471 > > Visitor address: > Gänsemarkt 33 > 20354 Hamburg, Germany > > Official address: > Eiffestraße 422 > 20537 Hamburg, Germany > > Company registered at Amtsgericht Hamburg, HRB 103974 > VAT no. DE275695865 > > On 21/05/14 16:53, Smith, Elliot wrote: > > Hello Davide, > > > > On 21 May 2014 14:41, davide <[email protected]> wrote: > > I have a Cordova project that is running OK. I wanted to add the crosswalk > to speedup the performance on Android which quite poor compared to > IOS. > > I am following the steps: > https://crosswalk-project.org/#documentation/cordova/migrate_an_applicationto > migrate the cordova project to crosswalk. > > Using the command line version [I am on linux] with crosstalk version > 6.35.131.4 and 5.34.104.5 [ARM]. > > Following the procedure, everything seems to be working but at point 5 I > have some issue. > > # build the Android apk file > $ cd .. > $ ant debug > In this part I have an BUILD FAILED error > > > > It looks like you're missing a reference to a Cordova library (jar file) > somewhere. > > > > So you can build the project from the command line with plain Cordova, but > not when you incorporate Crosswalk? > > > > I've just had a look back at the sample I used, which also has a class > which extends CordovaActivity. In my case, all the references are present > and correct. Have you made any changes to the Ant build files generated by > Cordova at any point? > > > > Also, which version of Cordova are you migrating with? I wonder if there's > a possibility of an issue there, e.g. if a class changed its name since the > version of Cordova you originally used (I have to admit I'm not overly > familiar with Cordova). > > > > It's a bit tricky to isolate issues like this just from the Ant build > output. If you have the code available somewhere public, or can attach it > to a Jira issue, I'd be happy to have a closer look. > > > > Elliot > > > > > -compile: > [javac] Compiling 5 source files to > /home/davide/work/ideaProjects/my_app/platforms/android/bin/classes > [javac] > /home/davide/work/ideaProjects/my_app/platforms/android/src/com/myapp/app/MyApp.java:25: > error: cannot find symbol > [javac] public class MyApp extends CordovaActivity > [javac] ^ > [javac] symbol: class CordovaActivity > [javac] > /home/davide/work/ideaProjects/my_app/platforms/android/src/com/myapp/app/MyApp.java:30: > error: cannot find symbol > [javac] super.onCreate(savedInstanceState); > [javac] ^ > [javac] symbol: variable super > [javac] location: class MyApp > [javac] > /home/davide/work/ideaProjects/my_app/platforms/android/src/com/myapp/app/MyApp.java:31: > error: cannot find symbol > [javac] super.init(); > [javac] ^ > [javac] symbol: variable super > [javac] location: class MyApp > [javac] > /home/davide/work/ideaProjects/my_app/platforms/android/src/com/myapp/app/MyApp.java:33: > error: cannot find symbol > [javac] super.loadUrl(Config.getStartUrl()); > [javac] ^ > [javac] symbol: variable Config > [javac] location: class MyApp > [javac] > /home/davide/work/ideaProjects/my_app/platforms/android/src/com/myapp/app/MyApp.java:33: > error: cannot find symbol > [javac] super.loadUrl(Config.getStartUrl()); > [javac] ^ > [javac] symbol: variable super > [javac] location: class MyApp > [javac] > /home/davide/work/ideaProjects/my_app/platforms/android/src/com/myapp/app/MyApp.java:27: > error: method does not override or implement a method from a supertype > [javac] @Override > [javac] ^ > [javac] 6 errors > > BUILD FAILED > /home/davide/android-sdk-linux/tools/ant/build.xml:720: The following > error occurred while executing this line: > /home/davide/android-sdk-linux/tools/ant/build.xml:734: Compile failed; > see the compiler error output for details. > > Anything that I can do to find & fix the issue ? > > Thank you in advance. > > -- > > Regards, > Davide > > > _______________________________________________ > Crosswalk-help mailing list > [email protected] > https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help > > > > > > -- > Elliot Smith > Senior Software Engineer > Intel Open Source Technology Centre > > > > _______________________________________________ > Crosswalk-help mailing list > [email protected] > https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help > > -- Elliot Smith Senior Software Engineer Intel Open Source Technology Centre
_______________________________________________ Crosswalk-help mailing list [email protected] https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
