Android packaging error

So I have this error message at the end of the log. Up until this point everything seems to go fine, so I’m posting the section that produces the error.
Other similar posts that I came across had different messages and mostly error code 5 for the automation tool, but I have 1.
Things I tried: -building in 4.14
-installing debugging symbols
-reinstalling udk4
-building for windows(it worked)
I just don’t know what to do with this pls halp :expressionless:


UATHelper: Packaging (Android (All)): UEDeployAndroid.UpdateGameActivity:
UATHelper: Packaging (Android (All)): ==== Writing new GameActivity.java file to E:\a UnrealShiat\Phone3rdpersMkII\Intermediate/Android/APK\src\com\epicgames\ue4\GameActivity.java ====
UATHelper: Packaging (Android (All)): UEDeployAndroid.MakeApk:
UATHelper: Packaging (Android (All)): Copying new .so D:\UDK\Epic Games\UE_4.15\Engine\Binaries\Android\UE4Game-armv7-es2.so file to jni folder…
UATHelper: Packaging (Android (All)): UEDeployAndroid.RunCommandLineProgramWithException: Preparing native code for debugging…
UATHelper: Packaging (Android (All)): Program.Main: ERROR: AutomationTool terminated with exception: ERROR: D:/Program Files (x86)/CodeWorks4Android/android-ndk-r12b/ndk-build.cmd failed with args APP_ABI="armeabi-v7a " NDK_DEBUG=1
UATHelper: Packaging (Android (All)): Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Android (All)): BUILD FAILED
PackagingResults:Error: Error Unknown Error


ps: I can’t get this thing to format things neatly :frowning:

I think this is happening because of the space in the “Program Files” in the install directory of CodeWorks

ERROR: D:/Program Files (x86)/CodeWorks4Android/android-ndk-r12b/ndk-build.cmd

I read somewhere before that the path should not contain spaces. So basically you should not install it in Program Files folder

Try Installing the NVPACK in a different location a custom folder say called “NVPACK”

Like mine reads like D:\Me\Softwares\NVPACK (Notice no space)

Please make your necessary back-ups. This a just a suggestion solution. You will try it at your own risk, so do not blame me if you mess somthing up.

To do a clean re-install without downloading -

  1. Just copy the “CodeWorksforAndroid” folder which contains folders like “001”,“002” etc. to a location.
  2. Go to the install folder and run “uninstaller” program
  3. After finished Go to engine-version\Engine\Extras\AndroidWorks\Win64\CodeWorksforAndroid.
  4. Go through the wizard and download some small document in the “Chooser” and finish (others you can select “no action” option). (Make sure to change the default install location this time.)
  5. Restart the PC at the end of the wizard when pop-up asks you.
  6. Copy the CodeWorksforAndroid folder that you backed up in step one and overwrite the one in the newly installed folder.
  7. Run “Chooser” and install.

Cheers!

<3 will try it now

:'D The codeworks uninstall crashes when I start it because of the spaces in the file name

Darn man,
I am pretty sure that the solution to your problem is fixing the path.
But since uninstaller is not working again due to the path. I don’t know about a clean uninstall.

Try uninstalling via program and feature → uninstall a program → It should have NVDIA CodeWorksforAndroid.

Also, just for your info. All the downloaded stuff is under the folder I mentioned in step 1. So you should be safe as far as it goes for downloading if you back it up.

unfortunately the programs and features option did not work either.
I managed to start it somehow however, after downloading an installer from their website, deleting some stuff, rebooting, crying, it somehow worked.
Now I’m having some weird file access nonsense within codeworks.
:smiley: It’s amazing how much one has to suffer with theese kinds of things.
Thanks for the help by the way!

It worked! Thank you very much!

Good one! Quite a heckle ride. Glad could help. Now go back coding as will I :smiley:

What did u do exactly after u failed uninstalling it from the control panel as well

Plz tell, i think im struct exactly as u were.

How about simply deleting the folder (remember backup the CodeWorksforAndroid folder which has all the downloaded data) then go to System → Advanced System Settings → Under Advanced Tab → Environment Variables → Delete all the Relevant Variables to list → PATH, NVPACK ROOT, NVPACK_NDK_VERSION, NVPACK_NDK_TOOL_VERSION, NDKROOT, JAVA_HOME, GRADLE_HOME, ANT_HOME, ANDROID_NDK_ROOT and ANDROID_HOME, Then reinstall NVPACK to custom location.

Dunno man, It was a long time ago :D. I think I removed it somehow with an installer I downloaded. If that doesn’t work, I would try some kind of program removal tool so it also cleans out possible registry files.