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:

[What is correct and present method of packaging a prebuilt shared library (.so) for Android - Platform & Builds - Epic Developer Community Forums][1]

[Add category to intent-filter into AndroidManifest.xml - Mobile - Epic Developer Community Forums][2]

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)?

Thanks!

What is correct and present method of packaging a prebuilt shared library (.so) for Android - Platform & Builds - Epic Developer Community Forums
[2]: Add category to intent-filter into AndroidManifest.xml - Mobile - Epic Developer Community Forums

NeoChang,

Please review this [AnswerHub post][1] as it should provide you the information you’re looking for.

Good luck!

What is correct and present method of packaging a prebuilt shared library (.so) for Android - Platform & Builds - Epic Developer Community Forums

Hi ,
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?

I’ve got an answer from Chis Babcock in the [UDN post][1], 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.

https://udn.unrealengine.com/questions/300001/what-is-the-correct-way-to-package-a-prebuilt-shar.html