- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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);"
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Swati,
Yes, the Intel XDK Device plugin is still selected.
I have used 'every' version of the XDK before without issues.
--Sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
XDK version ? latest wont work, its buggy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Doing the same as @BitC works...have to uncheck & recheck the Intel XDX Device plugin each time I run the XDK.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is this locking your apps in "portrait" as well? Mine won't rotate to landscape on many iOS devices. Build 1878 seems pretty broken!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What do you mean by "double check the selectState"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page