본문 바로가기

게임개발

Cannot parse project property android.enableR8=" of type 'class java.lang.String' as boolean. Expected 'true' or 'false'

If you have a problem with this and the error written in title : picked up java_tool_options: -dfile.encoding=utf-8

It is caused by forced changing version of unity project. (https://forum.unity.com/threads/cant-build-android.1354328/)

You can solve by these steps.

Step1. Unity Project setting > Publishing setting > Check Custom Gradle Proierties Template

Step2. Open Assets/Plugins/Android/gradleTemplate.properties

Step3. Remove this line : android.enableR8=**MINIFY_WITH_R_EIGHT**