Download

Deployment Problem

Hi guys, I’ve a problem with the deployment on my Xiaomi Redmi Note 3.
I’m following this documentation for my project: https://docs.unrealengine.com/en-us/…rojectcreation
I’ve attached here the log when I run it as Administrator, the log when i double click on it and the “adb devices” output… Can you give some help to solve the issue? :frowning:

UE 4.19 / Xiaomi Redmi Note 3 / Android 6

Log “Run as Administrator”:
*C:\WINDOWS\system32>if “C:\NVPACK\android-sdk-windows” == “” set ANDROIDHOME=C:/NVPACK/android-sdk-windows

C:\WINDOWS\system32>set ADB=C:\NVPACK\android-sdk-windows\platform-tools\adb.exe

C:\WINDOWS\system32>set DEVICE=

C:\WINDOWS\system32>if not “” == “” set DEVICE=-s

C:\WINDOWS\system32>for /F “delims=” %A in (‘C:\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.

C:\WINDOWS\system32>C:\NVPACK\android-sdk-windows\platform-tools\adb.exe uninstall com.YourCompany.GVR
Failure [DELETE_FAILED_INTERNAL_ERROR]

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

C:\WINDOWS\system32>C:\NVPACK\android-sdk-windows\platform-tools\adb.exe install GVR-arm64-es2.apk
Invalid APK file: GVR-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.
Press any key to continue . . .*

Log:
*C:\Users\Roxas\Documents\Unreal Projects\GVR\Androids_Builds\Android_ASTC>setlocal

C:\Users\Roxas\Documents\Unreal Projects\GVR\Androids_Builds\Android_ASTC>set ANDROIDHOME=C:\NVPACK\android-sdk-windows

C:\Users\Roxas\Documents\Unreal Projects\GVR\Androids_Builds\Android_ASTC>if “C:\NVPACK\android-sdk-windows” == “” set ANDROIDHOME=C:/NVPACK/android-sdk-windows

C:\Users\Roxas\Documents\Unreal Projects\GVR\Androids_Builds\Android_ASTC>set ADB=C:\NVPACK\android-sdk-windows\platform-tools\adb.exe

C:\Users\Roxas\Documents\Unreal Projects\GVR\Androids_Builds\Android_ASTC>set DEVICE=

C:\Users\Roxas\Documents\Unreal Projects\GVR\Androids_Builds\Android_ASTC>if not “” == “” set DEVICE=-s

C:\Users\Roxas\Documents\Unreal Projects\GVR\Androids_Builds\Android_ASTC>for /F “delims=” %A in (‘C:\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.

C:\Users\Roxas\Documents\Unreal Projects\GVR\Androids_Builds\Android_ASTC>C:\NVPACK\android-sdk-windows\platform-tools\adb.exe uninstall com.antonio.gvr
Failure [DELETE_FAILED_INTERNAL_ERROR]

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

C:\Users\Roxas\Documents\Unreal Projects\GVR\Androids_Builds\Android_ASTC>C:\NVPACK\android-sdk-windows\platform-tools\adb.exe install GVR-arm64-es2.apk
[100%] /data/local/tmp/GVR-arm64-es2.apk
pkg: /data/local/tmp/GVR-arm64-es2.apk
Failure [INSTALL_FAILED_OLDER_SDK]

C:\Users\Roxas\Documents\Unreal Projects\GVR\Androids_Builds\Android_ASTC>C:\NVPACK\android-sdk-windows\platform-tools\adb.exe shell rm -r /sdcard/UE4Game/GVR
rm: /sdcard/UE4Game/GVR: No such file or directory

C:\Users\Roxas\Documents\Unreal Projects\GVR\Androids_Builds\Android_ASTC>C:\NVPACK\android-sdk-windows\platform-tools\adb.exe shell rm -r /sdcard/UE4Game/UE4CommandLine.txt
rm: /sdcard/UE4Game/UE4CommandLine.txt: No such file or directory

C:\Users\Roxas\Documents\Unreal Projects\GVR\Androids_Builds\Android_ASTC>C:\NVPACK\android-sdk-windows\platform-tools\adb.exe shell rm -r /sdcard/obb/com.antonio.gvr

C:\Users\Roxas\Documents\Unreal Projects\GVR\Androids_Builds\Android_ASTC>C:\NVPACK\android-sdk-windows\platform-tools\adb.exe shell rm -r /sdcard/Android/obb/com.antonio.gvr
rm: /sdcard/Android/obb/com.antonio.gvr: No such file or directory

Installing new data. Failures here indicate storage problems (missing SD card or bad permissions) and are fatal.

C:\Users\Roxas\Documents\Unreal Projects\GVR\Androids_Builds\Android_ASTC>C:\NVPACK\android-sdk-windows\platform-tools\adb.exe push main.1.com.antonio.gvr.obb /sdcard/obb/com.antonio.gvr/main.1.com.antonio.gvr.obb
[100%] /sdcard/obb/com.antonio.gvr/main.1.com.antonio.gvr.obb

C:\Users\Roxas\Documents\Unreal Projects\GVR\Androids_Builds\Android_ASTC>if “0” NEQ “0” goto Error

Grant READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE to the apk for reading OBB file or game file in external storage.

C:\Users\Roxas\Documents\Unreal Projects\GVR\Androids_Builds\Android_ASTC>C:\NVPACK\android-sdk-windows\platform-tools\adb.exe shell pm grant com.antonio.gvr android.permission.READ_EXTERNAL_STORAGE
Bad argument: java.lang.IllegalArgumentException: Unknown package: com.antonio.gvr
usage: pm list packages -f] -d] -e] -s] -3] -i] -u] --user USER_ID] [FILTER]
pm list permission-groups
pm list permissions -g] -f] -d] -u] [GROUP]
pm list instrumentation -f] [TARGET-PACKAGE]
pm list features
pm list libraries
pm list users
pm path PACKAGE
pm dump PACKAGE
pm install -lrtsfd] -i PACKAGE] --user USER_ID] [PATH]
pm install-create -lrtsfdp] -i PACKAGE] -S BYTES]
–install-location 0/1/2]
–force-uuid internal|UUID]
pm install-write -S BYTES] SESSION_ID SPLIT_NAME [PATH]
pm install-commit SESSION_ID
pm install-abandon SESSION_ID
pm uninstall -k] --user USER_ID] PACKAGE
pm set-installer PACKAGE INSTALLER
pm move-package PACKAGE [internal|UUID]
pm move-primary-storage [internal|UUID]
pm clear --user USER_ID] PACKAGE
pm enable --user USER_ID] PACKAGE_OR_COMPONENT
pm disable --user USER_ID] PACKAGE_OR_COMPONENT
pm disable-user --user USER_ID] PACKAGE_OR_COMPONENT
pm disable-until-used --user USER_ID] PACKAGE_OR_COMPONENT
pm hide --user USER_ID] PACKAGE_OR_COMPONENT
pm unhide --user USER_ID] PACKAGE_OR_COMPONENT
pm grant --user USER_ID] PACKAGE PERMISSION
pm revoke --user USER_ID] PACKAGE PERMISSION
pm reset-permissions
pm set-app-link --user USER_ID] PACKAGE {always|ask|never|undefined}
pm get-app-link --user USER_ID] PACKAGE
pm set-install-location [0/auto] [1/internal] [2/external]
pm get-install-location
pm set-permission-enforced PERMISSION [true|false]
pm trim-caches DESIRED_FREE_SPACE [internal|UUID]
pm create-user --profileOf USER_ID] --managed] USER_NAME
pm remove-user USER_ID
pm get-max-users

pm list packages: prints all packages, optionally only
those whose package name contains the text in FILTER. Options:
-f: see their associated file.
-d: filter to only show disbled packages.
-e: filter to only show enabled packages.
-s: filter to only show system packages.
-3: filter to only show third party packages.
-i: see the installer for the packages.
-u: also include uninstalled packages.

pm list permission-groups: prints all known permission groups.

pm list permissions: prints all known permissions, optionally only
those in GROUP. Options:
-g: organize by group.
-f: print all information.
-s: short summary.
-d: only list dangerous permissions.
-u: list only the permissions users will see.

pm list instrumentation: use to list all test packages; optionally
supply <TARGET-PACKAGE> to list the test packages for a particular
application. Options:
-f: list the .apk file for the test package.

pm list features: prints all features of the system.

pm list users: prints all users on the system.

pm path: print the path to the .apk of the given PACKAGE.

pm dump: print system state associated with the given PACKAGE.

pm install: install a single legacy package
pm install-create: create an install session
-l: forward lock application
-r: replace existing application
-t: allow test packages
-i: specify the installer package name
-s: install application on sdcard
-f: install application on internal flash
-d: allow version code downgrade
-p: partial application install
-g: grant all runtime permissions
-S: size in bytes of entire session

pm install-write: write a package into existing session; path may
be ‘-’ to read from stdin
-S: size in bytes of package, required for stdin

pm install-commit: perform install of fully staged session
pm install-abandon: abandon session

pm set-installer: set installer package name

pm uninstall: removes a package from the system. Options:
-k: keep the data and cache directories around after package removal.

pm clear: deletes all data associated with a package.

pm enable, disable, disable-user, disable-until-used: these commands
change the enabled state of a given package or component (written
as “package/class”).

pm grant, revoke: these commands either grant or revoke permissions
to apps. The permissions must be declared as used in the app’s
manifest, be runtime permissions (protection level dangerous),
and the app targeting SDK greater than Lollipop MR1.

pm reset-permissions: revert all runtime permissions to their default state.

pm get-install-location: returns the current install location.
0 [auto]: Let system decide the best location
1 [internal]: Install on internal device storage
2 [external]: Install on external media

pm set-install-location: changes the default install location.
NOTE: this is only intended for debugging; using this can cause
applications to break and other undersireable behavior.
0 [auto]: Let system decide the best location
1 [internal]: Install on internal device storage
2 [external]: Install on external media

pm trim-caches: trim cache files to reach the given free space.

pm create-user: create a new user with the given USER_NAME,
printing the new user identifier of the user.

pm remove-user: remove the user with the given USER_IDENTIFIER,
deleting all data associated with that user

C:\Users\Roxas\Documents\Unreal Projects\GVR\Androids_Builds\Android_ASTC>C:\NVPACK\android-sdk-windows\platform-tools\adb.exe shell pm grant com.antonio.gvr android.permission.WRITE_EXTERNAL_STORAGE*

pls help me :frowning:

Please, isn’t there anybody who can help me?
I need to continue this project for my thesis but I don’t know why the deployment doesn’t work :frowning:

Did you manage to solve your problem? Currently having a similar problem

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

C:\Users\Roxas\Documents\Unreal Projects\GVR\Androids_Builds\Android_ASTC>C:\NVPACK\android-sdk-windows\platform-tools\adb.exe install GVR-arm64-es2.apk
[100%] /data/local/tmp/GVR-arm64-es2.apk
pkg: /data/local/tmp/GVR-arm64-es2.apk
Failure [INSTALL_FAILED_OLDER_SDK]

Judging by this output from the log it seems like there is a versioning problem with the SDK either in the app settings or on the device. Maybe confirm your minimum sdk version and try again.

If you already have the adb.exe envionment variable set in windows, you can make a small change to the .bat file to make it work:
Change the fourth line from


set ADB=%ANDROIDHOME%\platform-tools\adb.exe


to


set ADB=adb.exe