Android Studio Release vs Debug

Well I followed your procedure to upgrade to 2.0, and I can compile and run with no problem using debug variant. However I get an error ("Could not find method android()", see attached file) when choosing release variant. I use minimum skd version 22 as my Nexus10 does not support Android 6.

Any hint ? 

<EDIT> ah! Forget it, it was a signature problem. I fixed that but now I have another error. Let me ckeck it first before I bother you again, Timur...

<EDIT 2> The problem is still there with JUCE DEMO (see my post above)