0 votes
by (140 points)

我在unity2019、2020、2021中引入PicoVRUnitySDK2.8.12B583,打包出现错误,各种版本安卓插件jdk、Ndk,sdk也都试了还是出错,但用unity2018顺利通过打包,出错内容主要是:
Exception: OBSOLETE - Providing Android resources in Assets/Plugins/Android/res was removed, please move your resources to an AAR or an Android Library. See "AAR plug-ins and Android Libraries" section of the Manual for more details.
UnityEditor.Android.PostProcessor.Tasks.CheckUserResources.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at :0)
UnityEditor.Android.PostProcessAndroidPlayer.PrepareForBuild (UnityEditor.BuildOptions options, UnityEditor.BuildTarget target) (at :0)
UnityEditor.Android.AndroidBuildPostprocessor.PrepareForBuild (UnityEditor.BuildOptions options, UnityEditor.BuildTarget target) (at :0)
UnityEditor.PostprocessBuildPlayer.PrepareForBuild (UnityEditor.BuildOptions options, UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target) (at :0)
UnityEditor.DefaultBuildMethods:BuildPlayer(BuildPlayerOptions)
PvrUnitySDKBuildCheck:OnBuild(BuildPlayerOptions) (at Assets/PicoMobileSDK/PvrUnitySDK/Editor/Pvr_UnitySDKBuildCheck.cs:110)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

1 Answer

0 votes
by (5.3k points)

你这报的错应该还是安卓环境的问题,可以试试不导入sdk打包看看行不行
enter image description here

...