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"

How do I add a file to the build process?

Hi there,

I'd like to copy an XML file into a specific subdirectory in my Android apk. This must be possible in the build system - but how do I do it?

Example: Source: content\appdata\myxml.xml Dest: APK:res\xml\myxml.xml

Looks like I can probably modify the build scripts, but also seems like there should be a data driven approach.

Regards,

-Tom

Product Version: UE 4.20
Tags:
more ▼

asked Oct 08 '18 at 10:21 PM in Packaging & Deployment

avatar image

theonecalledtom
1.2k 58 61 265

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

1 answer: sort voted first

Finally got some time to double back on this. I found that adding the file to Engine/Build/Android/APK/... gets it into the build (now I have to work out why it's throwing errors about the xml I've added).

more ▼

answered Dec 16 '18 at 07:13 PM

avatar image

theonecalledtom
1.2k 58 61 265

avatar image theonecalledtom Dec 17 '18 at 06:49 AM

And actually looks like you can add files from MyProject/Build/Android/res

(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