我有一个名为Game_1的项目,我从之前的项目Game_0中复制了这个项目。我想在我的设备上安装Game_1的apk但我得到错误"无法安装apk"。
我的设备已包含Game_0的APK。当我卸载Game_0的APK时,我可以安装Game_1 apk。
两个apk都有不同的产品名称和不同的包名称。它们都是由相同的keystone文件构建的。我的统一版本是5.3.3,我也尝试过5.4.1但同样的错误弹出窗口。
我还确保在播放器设置中自动安装位置。从过去的6个月开始,我一直在继续这个过程,一切都很顺利。现在当我做同样的事情时,我收到了安装错误。
有人可以告诉我是否有一些隐藏文件使得两个APK相同,可以安装设备吗?
错误消息是这样的
UnityException: Unable to install APK!
Installation failed. See the Console for details.
UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message, System.Exception ex)
UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuild (System.String title, System.String message)
UnityEditor.Android.PostProcessor.CancelPostProcess.AbortBuildPointToConsole (System.String title, System.String message)
UnityEditor.Android.PostProcessor.Tasks.PublishPackage.UploadAndStartPlayer (UnityEditor.Android.PostProcessor.PostProcessorContext context, Boolean retryUpload)
UnityEditor.Android.PostProcessor.Tasks.PublishPackage.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (BuildPostProcessArgs args)
UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport report) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:176)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()
Installation failed with the following output:
[ 0%] /data/local/tmp/Package.apk
[ 0%] /data/local/tmp/Package.apk