The duo had also met each other at Queen's Diamond Jubilee celebration in 2012.
"He's a party prince, a soldier and a philanthropist. He's a regular guy. If Harry was a movie character he would be Iron Man," mirror.co.uk quoted Will.i.am as saying.
"I grew up watching documentaries about the royal family, so I am really pleased to be meeting him," he added.