When compiling Cordova Ionic android on android studio and it gives an error or path in Cordova_lib or gradle, just delete the android folder from platform and do ioniccordova platform add android. Open the android folder in Android studio again and build. Important, do not change anything in android studio, anything from android folder or everything will break.