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
