I cannot open my project in Intel XDK

Get help using Construct 2

Post » Mon Oct 31, 2016 2:54 am

C2 exports successfully using Cordova.

I try to open the XDK file created by C2 and Intel XDK gives me "Error opening project. TypeError: Cannot read property 'length' of undefined". It actually does load something, but it does nothing.
B
40
S
18
G
5
Posts: 98
Reputation: 5,651

Post » Wed Nov 02, 2016 5:29 am

I have no idea how to get my exported file to work.

Can anyone give me some guidance?
B
40
S
18
G
5
Posts: 98
Reputation: 5,651

Post » Wed Nov 02, 2016 5:34 am

Construct 2 should export 2 files. One being a XDK and one being a XDKE. When you first open up Intel XDK at the bottom left there is a button that says import or open or something. Click that and browse to these files that Construct 2 exported. Then, try them both. One of them will work.
B
13
S
7
G
1
Posts: 31
Reputation: 1,866

Post » Wed Nov 02, 2016 10:56 pm

My project still says "Error opening project. TypeError: Cannot read property 'length' of undefined". Even when I retry with a new export from C2.

Image
B
40
S
18
G
5
Posts: 98
Reputation: 5,651

Post » Thu Nov 03, 2016 5:07 am

Which file are you trying to open? Give me the full name of the file including the extension.
B
13
S
7
G
1
Posts: 31
Reputation: 1,866

Post » Thu Nov 03, 2016 5:28 am

Believe it or not, it finally worked. I changed nothing and did nothing differently and I went through without giving me an error.

However, it is now giving me a new alert within the App View program. I ran into this same problem on a different app attempt. I posted a new thread about 2 hours ago about Cordova and XDK plugins being available.

I see that you suggested on that post to just do a direct download to the phone. I'll have to try that. Thanks for your help. I'll let you know how it works tomorrow.
B
40
S
18
G
5
Posts: 98
Reputation: 5,651

Post » Thu Nov 03, 2016 11:13 am

If you'll get this error in the future ( "Error opening project. TypeError: Cannot read property 'length' of undefined". ) just restart Intel XDK, it worked for me.
B
39
S
10
G
9
Posts: 213
Reputation: 7,032

Post » Thu Jan 19, 2017 9:35 am

Hello
keep show this error for me
any solution for this ?!
B
14
S
2
Posts: 35
Reputation: 816

Post » Thu Jan 19, 2017 11:39 am

I get this error, along with the long list of plugins error, several times. I am in alpha testing and trying to get rid of a couple of bugs, so i may build several times a day.

Steps i take:
If i get the 'undefined error' i just close XDK and re-open. I'll usually get the big error box that lists my plugins. I'll just click on any of the bottom buttons so it closes.

Once on the project page, where you add the settings for your build, i always delete my third party plugins i have added in C2 (the only plugins i use at this time are from cranberrygame: cordovaGame, cordovaAdmob and cordovaIAP. Why? I have had several errors when building if i leave them in. So it wastes less time for me to delete them and add them again manually.

Also, when i edit my game, layouts or event sheets, i always change the version number: 1.0.0.6, 1.0.0.7, etc.etc.

When i do this, if i try to open that project in intel xdk, i'll get an error sometimes. So i always delete that previous project from intel xdk, which does not delete it from your hard drive, only from intel xdk's. I have to sometimes close/re-open and delete it again, but it does save some headaches.
B
38
S
18
G
19
Posts: 664
Reputation: 14,112


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 21 guests