0 votes
by (200 points)
recategorized by

Pico G2、unity2019.4.1f1、JDK与安卓sdk满足要求,发布apk,却总是在build gradle project时报错。
1.> com.google.gson.stream.MalformedJsonException: Invalid escape sequence at line 1 column 3929 path $[20].name

UnityEditor.DefaultBuildMethods:BuildPlayer(BuildPlayerOptions)
Unity.XR.PXR.Editor.PXRSDKBuildCheck:OnBuild(BuildPlayerOptions) (at Packages/PicoXRPlatformSDK-1.2.5B81/Editor/PXR_SDKBuildCheck.cs:109)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

2.CommandInvokationFailure: Gradle build failed.
C:/Program Files/Unity/Hub/Editor/2019.4.1f1/Editor/Data/PlaybackEngines/AndroidPlayer\OpenJDK\bin\java.exe -classpath "C:\Program Files\Unity\Hub\Editor\2019.4.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-5.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"

3.> Task :launcher:processReleaseResources

UnityEditor.DefaultBuildMethods:BuildPlayer(BuildPlayerOptions)
Unity.XR.PXR.Editor.PXRSDKBuildCheck:OnBuild(BuildPlayerOptions) (at Packages/PicoXRPlatformSDK-1.2.5B81/Editor/PXR_SDKBuildCheck.cs:109)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

1 Answer

0 votes
by (200 points)

enter image description here

enter image description here

...