Hi, I think there are errors when using Unity build function with Android App Info localization implemented.
Below is the stack trace:
CommandInvokationFailure: Gradle build failed.
/Applications/Unity/Hub/Editor/2020.3.11f1/PlaybackEngines/AndroidPlayer/OpenJDK/bin/java -classpath "/Applications/Unity/Hub/Editor/2020.3.11f1/PlaybackEngines/AndroidPlayer/Tools/gradle/lib/gradle-launcher-5.6.4.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleDebug"
stderr[
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
/Users/matthewmok/arcade-unity/arcade-unity/Temp/gradleOut/unityLibrary/src/main/res/values-b+zh-rHans: Resource and asset merger: Invalid resource directory name
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':unityLibrary:packageDebugResources'.
> /Users/matthewmok/arcade-unity/arcade-unity/Temp/gradleOut/unityLibrary/src/main/res/values-b+zh-rHans: Error: Invalid resource directory name
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
I find the error comes from Player.cs in Platform/Android/ folder line 73. which “-” in “zh-Hans” and “zh-Hant” is replaced by “-r”.
I will file a bug report as well.