我在Visual Studio中创建了一个Cordova应用程序,现在我想在我的Windows平板电脑上测试它。
我已经生成了安装应用程序所需的文件
我已将文件复制到平板电脑并运行powershell脚本,但随后会停止显示以下消息:
Installing app...
Found dependency package(s):
D:\Dev\A\Mobile\AppPackages\CordovaApp.Windows10_2.2.0.0_x86_debug_Test\Dependencies\x86\Microsoft.VCLibs.x86.Debug.14.00.appx
D:\Dev\A\Mobile\AppPackages\CordovaApp.Windows10_2.2.0.0_x86_debug_Test\Dependencies\x64\Microsoft.VCLibs.x64.Debug.14.00.appx
Add-AppxPackage : Deployment failed with HRESULT: 0x80073CF9, De installatie is mislukt. Neem contact op met de softwareleverancier. (Uitzondering van HRESULT: 0x80073CF9)
NOTE: For additional information, look for [ActivityId] 3835c98a-d14d-0000-2222-36384dd1d101 in the Event Log or use the command line Get-AppxLog -ActivityID 3835c98a-d14d-0000-2222-6384dd1d101
At D:\Dev\A\Mobile\AppPackages\CordovaApp.Windows10_2.2.0.0_x86_debug_Test\Add-AppDevPackage.ps1:388 char:13
+ Add-AppxPackage -Path $DeveloperPackagePath.FullName -Dep ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (D:\Dev\A\Mobile..._x86_debug.appx:String) [Add-AppxPackage], IOException
+ FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.AddAppxPackageCommand
这就是我在第388行的powershell中所拥有的内容
377 $AddPackageSucceeded = $False
378 try
379 {
380 if ($DependencyPackages.FullName.Count -gt 0)
381 {
382 Write-Host $UiStrings.DependenciesFound
383 $DependencyPackages.FullName
384 Add-AppxPackage -Path $DeveloperPackagePath.FullName -DependencyPath $DependencyPackages.FullName -ForceApplicationShutdown
385 }
386 else
387 {
388 Add-AppxPackage -Path $DeveloperPackagePath.FullName -ForceApplicationShutdown
389 }
390 $AddPackageSucceeded = $?
391 }
392 catch
393 {
394 $Error[0] # Dump details about the last error
395 }
答案 0 :(得分:0)
首先删除应用程序解决了这个问题。似乎应用程序在计算机上没有重复的名称。 有一种解决方法,这里解释:
Error: DEP0001, HRESULT: 0x80073CF9 when deploying UWP app to Phone