I made android games in the past and they were working. I have experience in this area but not so much.
Recently I installed UE 4.24 and started using ES3. I can package the game but apk can’t be installed. I tried on my phone, it just said “failed to install”. Then, I downloaded android studio and tried to install to one of the emulators. It said “apk failed to install could not parse error string”.
I searched this but can not find anything. Does anyone know about this and is there a chance to see the real reason why? I don’t know how to look into logs while installing.
check the box that says “Disable verify obb on first start/update”
check the box that says “Allow large OBB Files”
check the box that says “use externalfilesdir for UE4Game Files”
when you package your project, dont run the batch script to install it, ive literally never been able to get that to work. Instead drag the apk file directly on your phone, then unplug your phone, double tap the file and it should install fine.
This is awesome, I really appreciate it, thank you but it isn’t fixed.
I was packaging as ETC1. After your instructions, I tried ETC1 again but still apk can’t be installed. Then I tried MULTI as in your video. Now I have “ERROR: cmd.exe failed with args /c “E:\STBM\Intermediate\Android\APK\gradle\rungradle.bat” :app:assembleDebug”
I looked solutions for this. One was opening rungradle.bat file. Other one was updating Android Support Repository on NVPACK. Both didn’t work. Now I can’t get a package.
I am sharing my sdk-ndk. Maybe these are at fault.
just to clarify, when you say it cant install do you mean you cant install it on your phone, or Unreal cant package the project and make the apk? Im not entireley sure which sdk/ndk you need specifically for ETC1, but i can see from the image that youre using a different version from me, also dont bother updating codeworks, the newest version is too advanced for unreal, if anything try uninstalling it and delete the NVPACK folder and try reinstalling it , But make sure you install 1R7 instead of the newest one
im pretty sure the gradle errors mean that your computer couldnt communicate with your phone, however, i dont think that matters because yo if you follow my instructions, it should treat your phone as a usb drive in fact, you can unplug your phone during the packaging process. the gradle drivers should be installed on your computer when you install codeworks, but again for this particular process i dont think you need them.
this is either a result of not accepting the sdk license in project settings (which im sure you probably did) or having the wrong version of gradle from nvpack. Im not sure which one is the right one, you can update everything if you run Chooser.exe in your NVPACK folder, or try a different version of codeworks altogether.
In my case, whenever I run the local installer that the engine creates, it shows me an error that says ‘failed to collect certificates’ and ‘failed to install the apk or the obb file’. Whenevet i try to manually install the apk, it shows me that the package is invalid. but there is a pattern to this that i have noticed - always happens when i increase the map size of my game. any fix to this. just fyi, the packaged apk’s size usually sums up to approx. 3GB @ViceVersa