Failed to load Libmain.so The application will terminate
I am creating Il2cpp build app bundle (~aab file) after publishing it on play store getting "Failed to load Libmain.so The application will terminate" Error.
I rechecked aab file by WinRAR too still in its lib folder it doesn't have libmain.so file however ARMV7 Have libmain.so file but in ARM64 doesn't have libmain.so file
I dont know why libmain.so file is not generating in aab file.
Unity version :- 2019.3.0f6
Answer by csm03780513 · Aug 10, 2020 at 01:27 PM
You can go to your mainTemplate.gradle then comment or remove the exclude statements as shown below. for me Idk how these statements came to be.
// Android Resolver Exclusions Start
android {
packagingOptions {
// exclude ('/lib/arm64-v8a/*' + '*')
// exclude ('/lib/armeabi/*' + '*')
// exclude ('/lib/mips/*' + '*')
// exclude ('/lib/mips64/*' + '*')
// exclude ('/lib/x86/*' + '*')
// exclude ('/lib/x86_64/*' + '*')
}
}
Your answer
Follow this Question
Related Questions
Android Plugin - .aar file missing R$raw reference 0 Answers
Camera FOV is adjustable in editor but not in Android Phone build (Google VR 1.6 and Unity 5.6.1f1) 1 Answer
Android build and run fail 0 Answers
because my game does not access my Scriptable Object 0 Answers
Animators in Android build 2 Answers