首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >无法将APK或OBB安装到电话上。虚幻引擎4

无法将APK或OBB安装到电话上。虚幻引擎4
EN

Stack Overflow用户
提问于 2020-01-25 15:54:05
回答 1查看 1.6K关注 0票数 0

我只是想在虚幻引擎4的手机上安装和打包一个测试应用程序,这只是一个空的入门级别,因为我想确保我的Android CodeWorks设置正确,我可以打包游戏并让它在手机上运行。在真正安装APK和OBB文件到我的手机之前,一切都运行得很顺利。下面是我正在获取的日志,据我所知没有任何错误。

代码语言:javascript
运行
复制
E:\My Games\FirstGame\TwinStickShooter\Android_ATC>setlocal

E:\My Games\FirstGame\TwinStickShooter\Android_ATC>if NOT "" == "" (call \HostWin64\Android\SetupEnvironmentVars.bat )

E:\My Games\FirstGame\TwinStickShooter\Android_ATC>set ANDROIDHOME=E:\NVPACK\android-sdk-windows

E:\My Games\FirstGame\TwinStickShooter\Android_ATC>if "E:\NVPACK\android-sdk-windows" == "" set ANDROIDHOME=E:/NVPACK/android-sdk-windows

E:\My Games\FirstGame\TwinStickShooter\Android_ATC>set ADB=E:\NVPACK\android-sdk-windows\platform-tools\adb.exe

E:\My Games\FirstGame\TwinStickShooter\Android_ATC>set DEVICE=

E:\My Games\FirstGame\TwinStickShooter\Android_ATC>if not "" == "" set DEVICE=-s

E:\My Games\FirstGame\TwinStickShooter\Android_ATC>for /F "delims=" %A in ('E:\NVPACK\android-sdk-windows\platform-tools\adb.exe shell "echo $EXTERNAL_STORAGE"') do @set STORAGE=%A

Uninstalling existing application. Failures here can almost always be ignored.

E:\My Games\FirstGame\TwinStickShooter\Android_ATC>E:\NVPACK\android-sdk-windows\platform-tools\adb.exe  uninstall com.E10Studios.TwinStickShooter

Exception occurred while executing:
java.lang.IllegalArgumentException: Unknown package: com.E10Studios.TwinStickShooter
        at com.android.server.pm.Settings.getInstallerPackageNameLPr(Settings.java:4671)
        at com.android.server.pm.PackageManagerService.getInstallerPackageName(PackageManagerService.java:25411)
        at com.android.server.pm.PackageManagerService.isOrphaned(PackageManagerService.java:25417)
        at com.android.server.pm.PackageManagerService.deletePackageVersioned(PackageManagerService.java:21125)
        at com.android.server.pm.PackageInstallerService.uninstall(PackageInstallerService.java:924)
        at com.android.server.pm.PackageManagerShellCommand.runUninstall(PackageManagerShellCommand.java:1486)
        at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:193)
        at android.os.ShellCommand.exec(ShellCommand.java:103)
        at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:25953)
        at android.os.Binder.shellCommand(Binder.java:642)
        at android.os.Binder.onTransact(Binder.java:540)
        at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:3329)
        at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:4763)
        at android.os.Binder.execTransact(Binder.java:739)

Installing existing application. Failures here indicate a problem with the device (connection or storage permissions) and are fatal.

E:\My Games\FirstGame\TwinStickShooter\Android_ATC>E:\NVPACK\android-sdk-windows\platform-tools\adb.exe  install TwinStickShooter-arm64-es2.apk
Failed to install TwinStickShooter-arm64-es2.apk:
There was an error installing the game or the obb file. Look above for more info.

Things to try:
Check that the device (and only the device) is listed with "ADB$ devices" from a command prompt.
Make sure all Developer options look normal on the device
Check that the device has an SD card.

我已经检查过,以确保我的设备显示与"ADB设备“命令,我非常确定,我的所有开发选项都是好的,因为我只需要USB调试激活,对吧?至于SD卡,有一张,它有足够的空间,我的内部存储也是如此。

我真的很困惑,任何人都能给予我的帮助我将不胜感激。我非常感谢您的宝贵时间,并提前向您表示感谢。此外,我真的是新手,所以我道歉,如果问题的解决方案是如此简单的东西。

EN

Stack Overflow用户

发布于 2020-01-25 16:08:30

我只是在摆弄我手机上的设置,然后解决了这个问题。对于其他任何可能有同样问题的人,在手机连接到PC并打开USB调试的情况下,向下拖动以调出菜单,单击android系统通知,并将USB传输设置从文件传输更改为图像传输。它很快就对我起作用了。

票数 0
EN
查看全部 1 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59907362

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档