While i was testing out the free Android Studio Cloud (which is faster than my laptop LOL) to open/build ppsspp project, i got 2 errors Can't resolve symbol 'File' at build.gradle
Replacing these new File() lines with file() seems to works, but not sure whether this will be compatible with older gradle version or not.
Edit: this might works on old version too, since this was found on an old post in 2018 https://stackoverflow.com/questions/38275583/create-version-txt-file-in-project-dir-via-build-gradle-task#comment83908599_38275875
//new File("versionname.txt").write(androidGitVersion.name())
//new File("versioncode.txt").write(androidGitVersion.code().toString())
file("versionname.txt").text = androidGitVersion.name()
file("versioncode.txt").text = androidGitVersion.code().toString()

PS: There is also an error at androidGitVersion.name()/androidGitVersion.code() due to the tags are not being fetched at all, and i ended creating a dummy tag, but that is not ppsspp issue.
While i was testing out the free Android Studio Cloud (which is faster than my laptop LOL) to open/build ppsspp project, i got 2 errors Can't resolve symbol 'File' at build.gradle
Replacing these
new File()lines withfile()seems to works, but not sure whether this will be compatible with older gradle version or not.Edit: this might works on old version too, since this was found on an old post in 2018 https://stackoverflow.com/questions/38275583/create-version-txt-file-in-project-dir-via-build-gradle-task#comment83908599_38275875
PS: There is also an error at
androidGitVersion.name()/androidGitVersion.code()due to the tags are not being fetched at all, and i ended creating a dummy tag, but that is not ppsspp issue.