Skip to content

Build.gradle issue #20326

Description

@anr2me

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()

Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions