当前位置:   article > 正文

Unity骚操作:解决【Unity打包Android】ArgumentNullException: Value cannot be null. Parameter name: path1_value cannot be null. (parameter 'path1')" sqlite

value cannot be null. (parameter 'path1')" sqlite

Unity版本:2019.3.15

报错:

ArgumentNullException: Value cannot be null.
Parameter name: path1
System.IO.Path.Combine (System.String path1, System.String path2) (at <437ba245d8404784b9fbab9b439ac908>:0)
UnityEditor.Utils.Paths.Combine (System.String[] components) (at <40fb318d110545438eb9e740c9e9b793>:0)
UnityEditor.Android.AndroidGradleRoot.GetGradleLaunchJarPath (System.String directory) (at <8d91af8ba381482d8e64ffef4d559bbc>:0)
UnityEditor.Android.GradleWrapper.GetBaseCommand (System.Int32 jvmHeapSize) (at <8d91af8ba381482d8e64ffef4d559bbc>:0)
UnityEditor.Android.PostProcessAndroidPlayer.ExecuteWarmup (System.String stagingArea) (at <8d91af8ba381482d8e64ffef4d559bbc>:0)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <8d91af8ba381482d8e64ffef4d559bbc>:0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <8d91af8ba381482d8e64ffef4d559bbc>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <40fb318d110545438eb9e740c9e9b793>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

参考:

Errors when building as Android APK - Unity Forum

解决:

Edit -> Preferences -> External Tool -> Gradle Installed with Unity

 勾选它

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/125305?site
推荐阅读
相关标签
  

闽ICP备14008679号