Gradle error while packaging

Android: can’t package: Intermediate/Android/APK\gradle\rungradle.bat" :app:assembleDebug

I wrote the error right in the beginning so we can stop wasting time. I have android game which needs to be packaged for uploading on playstore. Problem is i have 3 android projects ready and all of this same error. I have codeworks freshly installed. I deleted it and reinstalled it. I also updated visual studio. I also have keystore. But the games still won’t package. Somebody help me solve this.