After i updated the titanium sdk 3.3.0 GA, when i run my project on Android, i have this error, that on the Titanium Studio 3.2.3.201404181442 i didn't have, whit the same code.
[ERROR] : V8Exception: Exception occurred at products/setSections.js:22: Uncaught TypeError: Cannot read property 'items' of undefined
var data = { properties: { title: "Sample" } }; var listView = Titanium.UI.createListView({}); var listSections = Titanium.UI.createListSection({}); listSections.setItems([data]); listView.setSections(listSections); Ti.API.debug(listView.sections[0]); //undefined Ti.API.debug(listView.sections[0].items.length); //ERRORTitanium.UI.createListView and Titanium.UI.createListSection work fine.
I presume that the methods setSections(), that previously works on iOS and Android, now, doesn't work on Android device.
Any ideas?
Operating System Name = Mac OS X Version = 10.9.2 Architecture = 64bit # CPUs = 4 Memory = 8.0GB
Node.js Node.js Version = 0.10.13 npm Version = 1.3.2
Titanium CLI CLI Version = 3.3.0 node-appc Version = 0.2.14
Titanium SDK:
3.3.0.GA
Version = 3.3.0
Install Location = /Users/app/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.GA
Platforms = iphone, mobileweb, android, blackberry
git Hash = 787cd39
git Timestamp = 07/11/14 12:36
node-appc Version = 0.2.12
Alloy 1.4.1
Device Samsung galaxy tab 3 Android SDK: 20 Version 4.2.2
Device iPhad Version 7.0.3