Gradle error *Running Gradle build - failed!

hi

i get this error when i want to test my code on an android phone

ionic cap run android --external :


i investigated the error and something said to be related to firebase was written. but my project has nothing to do with firebase. do i really need google-services.json file?

how can i solve this?

the google-services message is just a warning telling you push notifications won’t work without it, so it’s not required unless you want to use push notifications

your error is related to using old android support libraries instead of the new AndroidX dependencies, check this on the troubleshooting guide

4 Likes

Please check this link its worked for me in macOS Monterey
:heavy_multiplication_x: Running Gradle build - failed! spawn ./gradlew EACCES