Adding require("ui") causes error

Corona newbie here. I’m working through “Gears” tutorial, and I’m getting an error after adding a reference to the UI library.

I’ve added this as the first line of my main.lua file:
local ui = require(“ui”)

And here’s the error:
Copyright © 2009-2010 A n s c a , I n c .
Version: 2.0.0
Build: 2011.268
The file sandbox for this project is located at the following folder:
(/Users/wolf/Library/Application Support/Corona Simulator/Gears-9EC209DCD0FAF0D946A80239E3AD62AC)
Runtime error
/Users/wolf/Desktop/Gears/main.lua:1: module ‘ui’ not found:resource (ui.lu) does not exist in archive
no field package.preload[‘ui’]
no file ‘/Users/wolf/Desktop/Gears/ui.lua’
no file ‘/Applications/Corona.268/Corona Simulator.app/Contents/Resources/ui.lua’
no file ‘/Applications/Corona.268/Corona Simulator.app/Contents/Resources/ui.blu’
stack traceback:
[C]: ?
[C]: in function ‘require’
/Users/wolf/Desktop/Gears/main.lua:1: in main chunk
Runtime error: /Users/wolf/Desktop/Gears/main.lua:1: module ‘ui’ not found:resource (ui.lu) does not exist in archive
no field package.preload[‘ui’]
no file ‘/Users/wolf/Desktop/Gears/ui.lua’
no file ‘/Applications/Corona.268/Corona Simulator.app/Contents/Resources/ui.lua’
no file ‘/Applications/Corona.268/Corona Simulator.app/Contents/Resources/ui.blu’
stack traceback:
[C]: ?
[C]: in function ‘require’
/Users/wolf/Desktop/Gears/main.lua:1: in main chunk

[import]uid: 29491 topic_id: 5677 reply_id: 305677[/import]

Make sure you have the ui.lua file in the same folder as your main.lua and other project files. You can download ui.lua here: http://developer.anscamobile.com/code/ui-library , or just copy it from any of the sample projects that have it. [import]uid: 8782 topic_id: 5677 reply_id: 19449[/import]

That worked…thanks! I didn’t see that mentioned in the tutorial anywhere (although I may have missed it).

Funny, because there’s also a require(“physics”) line in the Balloon tutorial, and that worked fine.

Onward and upward! [import]uid: 29491 topic_id: 5677 reply_id: 19504[/import]