Cannot build or run on Android device error gradle and memory

Hi

I have searched wide across the web for a fix for an issue without success.

I installed the latest node.js cordova ionic, android studio marshmallow SDK and JDK on windows.

When I try to build or run and ionic app using ionic run or build command I got a cannot find gradel error.

Then when I installed android sdk 2.3.x into SDK folder it worked but now I am getting a memory error

Can anyone help I have spent hours on this surely it should just work!

If someone has successfully built or run on android device please can you post the exact versions of software that you have runninng.

Node.js
Android studio
SDK
JDK
Etc

Thanks