If you use Launch to launch your game on your device, it will only launch the level you are in. To have all of your levels to work, you need to package your project from the file menu and then put it on your device.
Okay I didn’t realize I had to drag it on to the phone, so I took the android folder and moved it onto the phone (it wouldn’t stay on the SD card for some reason). Everything seemed to install fine but when I go to open it it says No Google Play Store Key
I know that there’s a NoOBBInstall bat file, what do I do with this? When I try running from the PC it says “can’t find GmaeProject7a-armv7-es2.apk” to install. On the phone it won’t let me run it.
Did you run the bat file from the directory you packaged to? It will run some adb commands to find the sdcard install location for the OBB file if necessary, uninstall any existing APK with the same package name from the device, and install the APK you created, followed by the OBB if needed. You will not have an OBB if you turned on the “Package data in APK” checkbox in Android Project Settings. If you don’t turn this on, you must have the OBB on the device; do not run the NoOBBInstall.bat; it was intended to be used to test downloading and it has been confusing people. I’ve decided to disable generating it in 4.11 going forward.
File->Package Project -> Android -> Android (all), it packaged it onto the desktop.
Connected phone and dragged the “Android” folder onto the phone
On the phone, I just opened the .apk file and it proceeded with the installation.
After installation, when I try to run it I get a black screen for a moment and then it just exits. Launching levels individually from the editor works. Can’t seem to figure out how to properly package everything.
I tried running the batch file but then it says “can’t find GameeProject7a-armv7-es2.apk”
What I’m trying now is making a new project using the default firstpersonBP example and seeing if I can get that to work.
UPDATE:
That didn’t work either. I install the game by running the apk file and after it’s finished installing, it just crashes. Upgraded to 4.10.2 and same problem.
UPDATE 2:
I fired up android studio and used the logcat to see what was going on, it seems that the phone runs out of memory.
“01-25 06:54:29.044 29362-29379/? D/UE4﹕ Fatal error: [File:D:\BuildFarm\buildmachine_++depot+UE4-Releases+4.10\Engine\Source\Runtime\Core\Private\GenericPlatform\GenericPlatformMemory.cpp] [Line: 91]
01-25 06:54:29.044 29362-29379/? D/UE4﹕ Ran out of memory allocating 16777216 bytes with alignment 0
01-25 06:54:29.059 29362-29414/? I/AndroidRuntime﹕ VM exiting with result code 0, cleanup skipped.
01-25 06:54:29.499 2385-3276/? D/SSRMv2:Monitor﹕ SIOP:: AP = 330, Prev AP = 330, Duration = 10003
01-25 06:54:29.584 2385-3053/? I/ActivityManager﹕ Process com.YourCompany.LevelLoad4 (pid 29362) (adj 0) has died.”
Not sure why this would be since I’m just running some simple starter content.
EDIT 3:
Realized I can just launch the whole project from the editor by using the project launcher. However, I’m still getting the same issue, it just crashes now without starting.