Exporting to Android with Crosswalk

Get help using Construct 2

Post » Wed Aug 13, 2014 2:49 pm

I'm having problems exporting to Android using Crosswalk, I keep on getting the error

"The build failed. An error occurred while building the application. Verify your build assets are correct and try again."

From the tutorial by Ashley,

"Now export your project from Construct 2, choosing the Android option. For the export folder, export to the www subfolder in the XDK project location. (This should be where a template index.html already exists which we'll overwrite.)"

But there's no "www" folder in the XDK project folder, I tried creating one and the project doesn't work at all, if I export to the root folder of the XDK project I can run the project fine on the XDK's emulator but fails when building it.

Does anyone know how to fix it?
Please tag me with @caiorosisca if your post is refering to me :). I don't always follow the topics I answer.
B
11
S
4
G
1
Posts: 272
Reputation: 1,643

Post » Wed Aug 13, 2014 2:51 pm

ImageImageImageImage
B
157
S
66
G
41
Posts: 2,599
Reputation: 34,825

Post » Wed Aug 13, 2014 2:53 pm

Old info, just export the project from c2 to desktop or where you want, open xdk, open start a new project dialog, choose import an existing html5 project, browse the way to your project on desktop or somewhere, and export.
Dunno about the error, read the xdk topic above.
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

Post » Wed Aug 13, 2014 3:25 pm

I don't get it, should I create an www folder? an export it inside there? I'm completely lost even after reading the topic @shinkan pointed out.
Can someone help me with this please?
Please tag me with @caiorosisca if your post is refering to me :). I don't always follow the topics I answer.
B
11
S
4
G
1
Posts: 272
Reputation: 1,643

Post » Wed Aug 13, 2014 3:29 pm

When you creating new blank project in XDX you will get a folder in location specified in XDK. In this folder there is already a folder called "www".
All you need to do is to export Android from C2 to XDK projects\"Your project name"\www
ImageImageImageImage
B
157
S
66
G
41
Posts: 2,599
Reputation: 34,825

Post » Wed Aug 13, 2014 3:34 pm

Might be a problem with my XDK, whenever I create a new project the "www" folder isn't been created, it only creates a folder caleld "ProjectName" and on that folder 3 files are created: ProjectName.xdk , ProjectName.xdke and index.html.
I'm re installing the XDK, thanks for helping
Please tag me with @caiorosisca if your post is refering to me :). I don't always follow the topics I answer.
B
11
S
4
G
1
Posts: 272
Reputation: 1,643

Post » Wed Aug 13, 2014 4:55 pm

caiorosisca wrote:Might be a problem with my XDK, whenever I create a new project the "www" folder isn't been created, it only creates a folder caleld "ProjectName" and on that folder 3 files are created: ProjectName.xdk , ProjectName.xdke and index.html.
I'm re installing the XDK, thanks for helping

It's not the problem with xdk. I don't even know what exactly www folder are you talking about, i just export project as android and open it in this xdk window, and build then.
You do not have the required permissions to view the files attached to this post.
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

Post » Wed Aug 13, 2014 7:04 pm

Thanks for your help @Sisyphus,

When you create a new project in XDK using "Start with a Blank Project" it creates a www folder in which you were supposed to export your project (android) from construct into.
Aparently this doesn't work.
I've just managed to export a blank project using the way you said.
Anyway I still am not able to make export my game, not sure why yet. But knowing that I can get a blank one to work I can dig into it until I find the issue.
Thanks for your help.
Please tag me with @caiorosisca if your post is refering to me :). I don't always follow the topics I answer.
B
11
S
4
G
1
Posts: 272
Reputation: 1,643

Post » Thu Aug 14, 2014 11:04 am

caiorosisca wrote:Thanks for your help @Sisyphus,

When you create a new project in XDK using "Start with a Blank Project" it creates a www folder in which you were supposed to export your project (android) from construct into.
Aparently this doesn't work.
I've just managed to export a blank project using the way you said.
Anyway I still am not able to make export my game, not sure why yet. But knowing that I can get a blank one to work I can dig into it until I find the issue.
Thanks for your help.

And after reinstall, you still getting the error?
B
22
S
9
G
7
Posts: 421
Reputation: 6,543

Post » Sat Aug 16, 2014 5:08 pm

Is this happening when using XDK version 1199? I just downloaded that today and noticed some changes, and I believe I got a similar error message. I was able to build using Android Legacy. However, it seemed I have some issues using this method (lagging, sound cutting off etc). Only just started using it, so there may be more issues. If someone could help figure out how to set things up to be able to use the new Crosswalk for Android Cordova build method, that would be awesome.

Edit: I also notice I'm not able to use browser close action to exit the game.
Last edited by oceldot on Sat Aug 16, 2014 8:34 pm, edited 1 time in total.
B
14
S
3
Posts: 123
Reputation: 1,571

Next

Return to How do I....?

Who is online

Users browsing this forum: R0J0hound and 56 guests