x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Android Packaging Failed: Unknown Error

Hi Guys, I'm trying to Package an Android version of BP_First Person Sample for Gear VR and the Packaging failed with an unknown error. I didn't change anything of the content or assets (so that cannot be the problem).

I upload the log so if you can help me please.

Thankslink text

Product Version: UE 4.11
Tags:
log.txt (315.6 kB)
more ▼

asked Jun 22 '16 at 11:00 AM in Packaging & Deployment

avatar image

g0mo
8 8 11 12

(comments are locked)
10|2000 characters needed characters left

5 answers: sort voted first

Hi Samantha, finaly I fixed the problem with this solution: https://answers.unrealengine.com/questions/202561/ue-472-cant-pack-apk-with-ant.html

I changed the JAVA folder to C: (to avoid the spaces between "Program File" folder) and It works!!

Thanks!

more ▼

answered Jun 29 '16 at 12:14 PM

avatar image

g0mo
8 8 11 12

(comments are locked)
10|2000 characters needed characters left

Hi guys again. I tested another project to package and it didn't worked either. I think the problem is something related with Java or Android Studio.

Please help!

link text

log.txt (1.2 MB)
more ▼

answered Jun 22 '16 at 08:55 PM

avatar image

g0mo
8 8 11 12

(comments are locked)
10|2000 characters needed characters left

Nobody? I tried with different configuration and receive the same error. In the log:

C:\NVPACK\android-sdk-windows\tools\ant\build.xml:888: The following error occurred while executing this line: C:\NVPACK\android-sdk-windows\tools\ant\build.xml:890: The following error occurred while executing this line: C:\NVPACK\android-sdk-windows\tools\ant\build.xml:902: The following error occurred while executing this line: C:\NVPACK\android-sdk-windows\tools\ant\build.xml:283: null returned: 1

Something wrong with the build.xml file in android.

more ▼

answered Jun 23 '16 at 07:33 AM

avatar image

g0mo
8 8 11 12

(comments are locked)
10|2000 characters needed characters left

g0mo,

Please try opening your SDK manager in "C:\NVPACK\android-sdk-windows" and you need to dowload all Tools. I would then restart my computer and attempt to build the project.

Let me know if it doesn't correct the issue, thanks!

more ▼

answered Jun 23 '16 at 02:43 PM

avatar image g0mo Jun 23 '16 at 11:07 PM

Hi Samantha, I decided to reinstall all, because when I opened the Android Studio appeared a message about one of the tools wasn't installed correctly. So probably the problem is what you say. I'm going to finish the reinstall and i'll comment you. Thanks!!

(comments are locked)
10|2000 characters needed characters left

Hi Samantha, I reinstalled everything except one package called "API 23, N preview" that was unable to install because "depend on Missing SDK Platform Android Preview". What is that mean?

Anyway, I re-packaged the Unreal Project and still not working. It send me the next error:

MainFrameActions: Packaging (Android (ETC2)): BUILD FAILED MainFrameActions: Packaging (Android (ETC2)): C:\NVPACK\android-sdk-windows\tools\ant\build.xml:649: The following error occurred while executing this line: MainFrameActions: Packaging (Android (ETC2)): C:\NVPACK\android-sdk-windows\tools\ant\build.xml:694: null returned: 1 MainFrameActions: Packaging (Android (ETC2)): Total time: 17 seconds MainFrameActions: Packaging (Android (ETC2)): Program.Main: ERROR: AutomationTool terminated with exception: ERROR: cmd.exe failed with args /c "C:/NVPACK/apache-ant-1.8.2/bin/ant.bat" debug MainFrameActions: Packaging (Android (ETC2)): Program.Main: AutomationTool exiting with ExitCode=1 (Error_Unknown) MainFrameActions: Packaging (Android (ETC2)): Domain_ProcessExit MainFrameActions: Packaging (Android (ETC2)): copying UAT log files... MainFrameActions: Packaging (Android (ETC2)): BUILD FAILED

It is little frustrating :( I've spend two days trying to test my project and I can't. What is wrong with Android?

Please help!! Thanks!!

alt text

androidsdk.jpg (670.9 kB)
more ▼

answered Jun 24 '16 at 04:51 PM

avatar image

g0mo
8 8 11 12

avatar image Samantha Sutton ♦♦ STAFF Jun 28 '16 at 06:24 PM

g0mo,

The error that is showing up is: ERROR: cmd.exe failed with args /c "C:/NVPACK/apache-ant-1.8.2/bin/ant.bat

This error should be resolved if you installed the TOOLS for the SDK. Did you go to the Tools folder and install the Platform Tools?

By the way, I do not have API 23, N preview installed, so that shouldn't cause any trouble for you.

Let me know about your Tools folder.

avatar image g0mo Jun 29 '16 at 05:33 AM

Hi Samantha, there is something that I don't understand. Following the tutorials uploaded in Unreal, I executed "SDK manager.exe" archive inside of "android-sdk-windows" to install everything is needed. When I finished to install everything in that section I assumed that's all. But if not, How do I install the Platform Tools? I have to run another archive? Thanks!!

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question