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"

What is the correct way to packag a prebuilt shared library (.so) for Android in version before 4.10?

Hi, I'm now working on a plugin project which needs to use a prebuilt library (.so) when running. After research I've found these two posts:



Now I know in the newer version Unreal Engine (newer than 4.10), there's an amazing system called Android Plugin Language, which is very useful and convenient to package .so files and .jar libraries into APK.

But I have to support version 4.8 now, it seems in version 4.8, APL.XML mechanism cannot work. and when I try to refresh project files from the Editor, I got error in the myplugin.Build.cs file complaining this line:

 AdditionalPropertiesForReceipt.Add(new ReceiptProperty("AndroidPlugin", Path.Combine(ModuleDirectory, "GearVRCustom_APL.xml")));

 error CS0103: the name AdditionalPropertiesForReceipt does not exist in the current context

So, here's my question: what's the correct way to package the library file when using engine before version 4.10 (4.8 in my case)?


Product Version: UE 4.8
more ▼

asked Jun 23 '16 at 10:02 AM in Packaging & Deployment

avatar image

26 2 4

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

2 answers: sort voted first

I've got an answer from Chis Babcock in the UDN post, I'll quote the answer here in case some other people need it:

Yes, Android Plugin Language was added in 4.10.Previous to this you would need to put the files you want copied into the project's Build/Android directory in the proper directory for the architecture (libs/armeabi-v7a for .so, libs for .jar). The Engine/Build/Android/Java directories are copied to the project's Intermediate/Android/APK directory, then the contents of Build/Android before ANT is run to package.

more ▼

answered Jun 24 '16 at 02:46 AM

avatar image

26 2 4

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


Please review this AnswerHub post as it should provide you the information you're looking for.

Good luck!

more ▼

answered Jun 23 '16 at 02:06 PM

avatar image NeoChang Jun 24 '16 at 02:04 AM

Hi Samantha, I've read this post already, but this is just the first link I listed above. But the solution is for engine version newer than 4.10. What I'm confused about is what should I do in versions before 4.10, say 4.8?

(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