Unity DLL plugins for android

I make my first android game with Unity and it uses something called “plugins”. I have a script called Native for that. Everything works fine within the Unity editor. On top from my script it says “FOR UNITY_IOS” while I want to make my game for android. I have 2 plugins for the android platform. One is called “Armeabi V7” and the other “x86”. I have also a plugin for iOS and two that are called “x86” and “x86_64”. The problem Comes with the plugins when I build my game. I get 3 errors. One that the plugins “x86” and “x86_64” are the same. So I deleted"x86" than the second error is that there is a problem with the iOS plugin. So I deleted it because we don’t use it (because build platform is android). The third error is that from the 2 android plugins (“Armeabi v7” and “x86”) that they are the same. I make my game for 64 bit devices so I deleted the “x86”. Than I could succesfully build my game without errors. I tested the apk file on more than 10 different phones and on all the phones it doesn’t work. Can you help me or giving me information? Thanks

First of all it sounds like you didn’t set plugin settings, you shouldn’t be needing to delete them, just click on each plugin in Unity, and set for which platform and CPU architecture the specific plugin is for via Plugin Inspector

Without the log from the device it’s impossible to say what’s wrong, if you’re on Unity 2019.1 or higher, you can get logcat package via Package Manager to investigate the log from the app. Alternatively you can do adb logcat command yourself, check the documentation please - Unity - Manual: Log files

Hope that helps

All the plugins are set to “all platforms”. Later I will specify it for android (in my case). I will also install Logcat like you did say. Is that also avaible on the asset store or Just the package manager?

So, yes, All Platforms is wrong setting.

Android Logcat is available only in Package Manager, assuming you’re using Unity 2019.x or higher

1 Like

Okay, I can download it later and see how it goes.

1 Like

So I tested it to set the Build platform but I don’t know what CPU I should choose. This is how my code looks and these are the plugins:


I have a question. Does native plugins work in Unity free? Or is it Just Unity plus and Unity pro?

You mentioned that native plugins are named with x86, ARMv7 that’s the CPU identifiers.

Yes, native plugins work with Unity Free.

Its weird, I did select everything and it still doesn’t work. I can try everything again but if it doesn’t work than I don’t know what to do than. But how do I use the android plugin? If I want to delete Them all there is one I cant because that one is in use. But I want the Android plugin that needs to be used

Try copy pasting the path of a plugin and the contents of its meta file (located next to a plugin) here

How do you mean exactly the path? I only have the plugin and a few other files. I can show later some pictures about it. If you want to contact me in a different wat here is my Gmail: gamesarsyl@gmail.com

I meant the relative plugin path in your project.

this?

5882177--626573--Delete.PNG

I don’t see the full path from this screenshot

I don’t really know what you mean with “relative full path”

if you would put the dummy.so plugin in your root project path, the path would be ‘Assets/dummy.so’, in your case I assume it’s something like ‘Assets/Android/Plugins/x86/info.so’ ?

I ha

I have 2 things. I cant open them for some reason. My pc says I dont have a program/app installed to open it. This is how it looks:

5882177--626573--Delete.PNG
5882177--626588--Knipsel02.PNG
5882177--626591--Knipsel.PNG

If you’re on Windows, hit Windows key and enter Command Prompt or cmd, navigate to your project location and do

dir /B /S > filepaths.txt

this will generate filepaths.txt, attach that file here

All my Unity projects are in my OneDrive. It doesn’t work than. So I Will remove Them and place Them somewhere else. Than try again and see if it works.

Can you show some screenshots what I need to do? I dont really understand.