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"

Get error when packaging but no error when launching!

I'm on latest preview "4".

I'm making an android app.

I can package it as android when "for distribution" is not ticked but when I package the app for android (all, etc or atc1.. any) with "for distribution" enabled, I get an error and it stops: link text

I can launch the game on my mobile from the engine successfully, though there is a problem; I can not go to another level ( I did include the next level/map in the extra packaging settings!).

Product Version: UE 4.9 Preview
Tags:
more ▼

asked Aug 26 '15 at 08:23 PM in Bug Reports

avatar image

Dannyk90
250 35 36 51

avatar image Samantha Sutton ♦♦ STAFF Aug 27 '15 at 03:23 PM

Hey Danny,

It looks like you don't have the distribution settings set for Android. I have set up a blank project for distribution, under shipping and packaged it for Andriod (all). Are you able to package an Android project for distribution in a blank template?

Looking forward to hearing back, thanks!

avatar image Dannyk90 Aug 27 '15 at 04:01 PM

Hi thanks for your reply...

I tried it for both the following and both failed:

Flying example map with starter content: link text

Blank map and no starter contentlink text

avatar image Samantha Sutton ♦♦ STAFF Aug 27 '15 at 06:19 PM

Can you please send screennshots of your Android and Android SDK settings from within the editor?

Thank you!

avatar image Dannyk90 Aug 27 '15 at 06:26 PM

sure:

I have not touched this one: alt text

Heres the other parts: alt text alt text alt text

avatar image Dannyk90 Aug 31 '15 at 09:31 AM

what do you think ?

avatar image Samantha Sutton ♦♦ STAFF Sep 01 '15 at 02:33 PM

In your Android SDK, you should fill in the other blank boxes with the directory for example:

  • Android-ndk-r10

  • Apache-ant-1.8.2

  • Jdk1.6.0_45

Once you've added in that information, you should have no further troubles with packaging your game. If after you've added these in you receive errors, please upload the new log as a .txt file so that we can review them further.

Thanks!

avatar image Dannyk90 Sep 01 '15 at 05:15 PM

Just downloaded each one and set the folder dir in UE, same problem, packaging stops with an error:

alt text

error.txt (670.4 kB)
android sdk.png (28.9 kB)
(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

Hey Danny,

So I have sat down with our Android Developers and reviewed your logs further. It currently looks like all is working except for the fact that you have the Distribution Settings checked off. So please go back into your project, try to package it as 'Development' without the 'Distribution Settings' checked off.

However, if you want to package for shipping and distribution, you need to create the key for the store. Please follow this link to learn more.

Let us know if you run into any further complications, thank you!

more ▼

answered Sep 03 '15 at 08:41 PM

avatar image Dannyk90 Sep 03 '15 at 10:22 PM

aha thank you so much :D maybe that option should be removed, it's quite misleading lol

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

Hey Danny,

Based on the latest PNG, it looks as though you have a mix of SDK, NDK, ANT and JDK that aren't in any way paired together. It does not look like you're using AndroidWorks either. I recommend installing AndroidWorks and pointing all the paths to the appropriate NVPACK paths, this should resolve the issue you're running in to. I'd also suggest retying in the SDK API level (latest) just to make sure that has been set properly too.

Let us know if you need any additional assistance, good luck! :)

more ▼

answered Sep 01 '15 at 10:21 PM

avatar image Dannyk90 Sep 02 '15 at 07:44 AM

Just done all that, still getting an error:

You said a while ago that we would not need to manually set up android in 4.9 ?

link text

alt text

avatar image Samantha Sutton ♦♦ STAFF Sep 02 '15 at 01:30 PM

When switching to AndroidWorks, you still have to do the initial set up for the SDK.

Setting Up a Windows Environment for Android Testing

If you've already installed TADP/deployed to Android prior to 4.9, please do the following:

  • Rename your C:\NVPACK folder to C:\NVPACK_TADP

Instructions:

  • Uninstall all NVidia tegra and android based software using windows add or remove programs

  • Run the AndroidWorks installer located in \Engine\Extras\Android\ (choose the .exe)

  • Reboot when prompted

Once you've done that, then point the SDK to the correct folders, which should look similar to my screenshot provided:

Android SDK

Let me know how it goes, thanks!

androidworks.png (85.7 kB)
avatar image Dannyk90 Sep 02 '15 at 04:13 PM

so according to this, I should rename my already downloaded nvpack to nvpack_tadp and use this for the engine, I dont get why I have to download it again from the installer inside the engine dir when nothing will be using it?

I'm doing it anyway and will tell you what happens when it's downloaded.

avatar image Dannyk90 Sep 02 '15 at 04:25 PM

error file Didn't work again, the only difference I see is, yours has no e, mine has an e...Would that make a difference ? link text

error.txt (669.3 kB)
avatar image Samantha Sutton ♦♦ STAFF Sep 02 '15 at 06:50 PM

So, I checked within my Android SDK and the 'r10e' is from the older folder, and the 'r10' is from the newer folder. Can you please provide us the logs from your most recent package?

Thank you!

avatar image Dannyk90 Sep 02 '15 at 07:29 PM

my latest is in my reply above, "error.txt", Should I try find the "r10" ? The new one is "r10e" and they are both in the engine androidworks installer and the androidworks install i got from their website.

(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