Answers

Why are you typing commands? I mean, nothing wrong with typing commands but AFAIK you hit run in Processing under Android mode and Processing runs and load your perfectly functioning app in your phone (or sim). For this to happen, Processing needs to know where the Android SDK is. Now, if you are typing commands manually, tell us what you are doing with these commands... maybe somebody in the forum could address your question.

I then installed Android Studio and tell Processing where to find the SDK from this installation. It stopped telling me to locate the SDK folder but doesn't want to compile the script. Tha is the second and main issue.