Processing with Android, problems with Android compiling

I found no clear documentation for building a version of Processing (versions 4.xx) which works with Android correctly. It seems that different Processing versions need different Android mode versions and different SDK files.
Any method I tried to use did not work and I could not run existing proven sketches with any one of them.
Can anybody recommend a process to build a Processing for Android package which runs with no problem?

Thanks
Mike

Hi! I’m sorry that things are broken. Can you help me understand how you’re doing it and share some of the error output? Then I can see about how to get it fixed.

Thank you Moon.
I am giving a description of one of my attempts:
I deleted the previous version of processing and Android mode
I installed Processing version 4.5.3, and checked it by running a few sketches. They run correctly.
Then I installed Android mode through the IDE. The IDE provides only AndroidMode version 4.6.1.
I selected to use the automatic option for the SDK.
Any sketch that I try to run fails. I get tens of error lines such as the error log below. Other attempts with other Processing versions are not providing better results.
Thank you in advance for any idea.

*Error log: *
" m/repository/android/generic/01
Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
unexpected element (uri:“”, local:“extension-level”). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>
Errors limit exceeded. To receive all errors set com.sun.xml.bind logger to FINEST level.
unexpected element (uri:“”, local:“base-extension”). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>
Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 "