- Home /
How to import multiple unity android modules in to an Single Android Application in Android Studio ?
In Android native app there are Two Buttons , On click on button 1 it should navigate to Unity_Module_1 and Click on button 2 it should navigate to Unity_module_2.
When i import One Unity module and click on button 1 it navigates properly and launched.
When two modules are imported , ERROR : More than one file was found with OS independent path 'lib/armeabi-v7a/libmain.so files
I fixed the issue by adding the below line of code in App build.gradle
packagingOptions {
// exclude 'project.properties'
exclude 'lib/armeabi-v7a/libmain.so'
exclude 'lib/armeabi-v7a/libmono.so'
exclude 'lib/armeabi-v7a/libunity.so'
}
Once after fixing the issue , after gradle sync , when i click Button 1 it navigate to Unity 1 module , Button 2 it also navigating to Unity 1 module and sometimes its getting hanged or crashed.
Can someone help me with this integration , need to know weather it is possible .
Did you manage to solve this issue i am having it and using Unity 2019.3.0b12 ?
Answer by unity_0c_XV8OvptKpNw · Apr 09, 2019 at 01:51 PM
I use this link to integrate unity module in Android App
https://medium.com/@davidbeloosesky/embedded-unity-within-android-app-7061f4f473a
Hi, I am getting the same issue. When clicking on any button then only the first unity module is opening. I have tried a lot of ways to solve this issue. But still I did not get the proper solution. Could you please let me know how you achieve this. I will be very thankful to you!