Error 1 when building Cyanogen Mod 12.1 for Sony Xperia ZR dogo in Linux

When building Cyanogen Mod 12.1 for the Sony Xperia ZR dogo in Ubuntu Linux, I got the following error.

android/system/common/obj/JAVA_LIBRARIES/framework-base_intermediates/classes-full- debug.jar *** Error 1

To fix, open a terminal window and do the following:
$ cd ~/android/system <enter>
$ rm -rf out <enter>
$ repo sync <enter>
$ source build/envsetup.sh <enter>
$ breakfast dogo <enter>
$ brunch dogo <enter>