Cannot compile in Android (AR Template), nor configuring it on the project Settings / Platforms.
Runningt AR Template on 5.7.0
Any ideas?
“could not overwrite project properties file” is not an engine problem — windows is locking or read-only-flagging a file under intermediate/android. it shows up on the ar template first because that is the first time android tooling runs gradle. fixes in order:
- close the editor (and rider/visual studio), then delete intermediate/android entirely. it regenerates on the next build; a stale locked copy is the most common cause.
-
- check the folder is not marked read-only. projects copied from a zip/backup, or living inside onedrive/google drive sync, come in read-only or get files locked mid-build. clear the read-only attribute recursively, or move the project out of the synced folder and pause sync while building.
-
- kill lingering gradle daemons: gradlew --stop (or end java.exe processes in task manager). a daemon holding old file handles produces exactly this error on the next package.
-
- if the project was moved between drives, also delete intermediate/projectfiles, regenerate project files, and re-check the SDK/NDK/JDK paths in project settings → platforms → android still resolve.
after wiping intermediate/android the first package takes longer — that is normal, it is regenerating the whole gradle stage.