You must be running a different program, The error relates to a missing layout file, which the code I sent does not have.
If you turn on Include debug information under the Project menu, it will give more meaningful error messages, at least with the B4A line number.
If you post the code you are running, I'll take a look. (export as zip and attach it to the post)
Steve