Software Archive
Read-only legacy content
17060 Discussions

intel.xdk.device

Samuel_G_1
Beginner
636 Views

Upgraded to 1878...and now I get this error:

" Uncaught TypeError: Cannot read property 'setAutoRotate' of undefined"

on this line:

"intel.xdk.device.setAutoRotate(false);"

0 Kudos
9 Replies
Swati_S_Intel1
Employee
636 Views

Have you selected the Intel XDK device plugin? It might have got reset when you upgraded.

What version of XDK did you use before?

Swati

0 Kudos
Samuel_G_1
Beginner
636 Views

Swati,

Yes, the Intel XDK Device plugin is still selected.

I have used 'every' version of the XDK before without issues.

 

--Sam

0 Kudos
Sajeesh_N_
Beginner
636 Views

XDK version ? latest wont work, its buggy

0 Kudos
Bit_C_
Beginner
636 Views

Same error happen to me, on a real device with app preview.

I have to un-check and re-check the device plugin and then push the app to make it work.

Same issue with cache.getCookie() method and cache plugin.

I have to uncheck/check plugins every time i open the xdk otherwise it won't work on a real device.

edit: the xdk version is 1878

0 Kudos
Samuel_G_1
Beginner
636 Views

Doing the same as @BitC works...have to uncheck & recheck the Intel XDX Device plugin each time I run the XDK.

0 Kudos
jason_f_
Beginner
636 Views

Is this locking your apps in "portrait" as well? Mine won't rotate to landscape on many iOS devices. Build 1878 seems pretty broken!

0 Kudos
Swati_S_Intel1
Employee
636 Views

There is a bug in plugin selection part and have been reported. For now please check/uncheck the plugin you want to use and double check the selectState for that plugin to be "Included" in .xdk file before you build the project. 

Sorry for the inconvenience.

0 Kudos
Samuel_G_1
Beginner
636 Views

What do you mean by "double check the selectState"?

0 Kudos
Swati_S_Intel1
Employee
636 Views

@Samuel,

Sorry for not being clear. 

> Open .xdk file 

> under the plugins you will find the plugin you selected

> Under that plugin there is "selectedState", it should have value of "Included", if the value is "Excluded" that means the plugin does not get included in the build.

Currently the bug is when you check the plugin box the plugin entry is made in the .xdk file but the plugin is declared as "Excluded", if you uncheck the box then it gets "Included", so please check and uncheck the plugin box and then verify in the file manually if the plugin is "Included".

Thanks,

Swati

0 Kudos
Reply