I have looked at other posts and have no option to “enable grable instead of ant” in project settings
I have tried deleting the intermediate folder with no luck and the game packaged fine in 5.7 which as far as I know uses the same sdk versions etc so not sure where to go from here.
So I fixed it… I I tried to build the contents of the E:\ProjectName\Intermediate\Android\arm64\gradle folder in android studio and it informed me that the Gradle version was 8.13 and should be 8.6. I opened the gradle-wrapper.properties file located at E:\ProjectName\Intermediate\Android\arm64\gradle\gradle\wrapper and replaced the line distributionUrl=https://services.gradle.org/distributions/gradle-8.13-all.zip with distributionUrl=https://services.gradle.org/distributions/gradle-8.6-all.zip.
The project has now packaged successfully although strangely when I go back in to that file it still lists the version as 8.13…
Anyway hope this can help someone having the same issue.