# Unity DLL plugins for android

**URL:** <https://discussions.unity.com/t/unity-dll-plugins-for-android/791306>\
**Category:** Mobile\
**Tags:** Android, Feedback\
**Created:** [May 17, 2020, 11:16am UTC](https://discussions.unity.com/t/unity-dll-plugins-for-android/791306 "2020-05-17T11:16:11Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arsyl\_Games](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/arsyl_games/32/218135_2.png) [@Arsyl\_Games](https://discussions.unity.com/u/Arsyl_Games)\
**Post date:** [May 17, 2020, 11:16am UTC](https://discussions.unity.com/t/unity-dll-plugins-for-android/791306/1 "2020-05-17T11:16:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Tomas1856](https://avatars.discourse-cdn.com/v4/letter/t/f08c70/32.png) [@Tomas1856](https://discussions.unity.com/u/Tomas1856)\
**Post date:** [May 17, 2020, 8:09pm UTC](https://discussions.unity.com/t/unity-dll-plugins-for-android/791306/2 "2020-05-17T20:09:58Z")

</div>

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](https://docs.unity3d.com/Manual/LogFiles.html)

Hope that helps

---

<div class="post-metadata">

**Author:** ![Arsyl\_Games](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/arsyl_games/32/218135_2.png) [@Arsyl\_Games](https://discussions.unity.com/u/Arsyl_Games)\
**Post date:** [May 17, 2020, 10:48pm UTC](https://discussions.unity.com/t/unity-dll-plugins-for-android/791306/3 "2020-05-17T22:48:47Z")

</div>

> [@Tomas1856](#):
>
> 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 - [https://docs.unity3d.com/Manual/LogFiles.html](https://docs.unity3d.com/Manual/LogFiles.html)
> 
> 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?

---

<div class="post-metadata">

**Author:** ![Tomas1856](https://avatars.discourse-cdn.com/v4/letter/t/f08c70/32.png) [@Tomas1856](https://discussions.unity.com/u/Tomas1856)\
**Post date:** [May 18, 2020, 7:19am UTC](https://discussions.unity.com/t/unity-dll-plugins-for-android/791306/4 "2020-05-18T07:19:35Z")

</div>

> [@Arsyl\_Games](#):
>
> 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

---

<div class="post-metadata">

**Author:** ![Arsyl\_Games](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/arsyl_games/32/218135_2.png) [@Arsyl\_Games](https://discussions.unity.com/u/Arsyl_Games)\
**Post date:** [May 18, 2020, 12:11pm UTC](https://discussions.unity.com/t/unity-dll-plugins-for-android/791306/5 "2020-05-18T12:11:20Z")

</div>

> [@Tomas1856](#):
>
> So, yes, All Platforms is wrong setting.
> 
> Android Logcat is available only in Package Manager, assuming you’re using Unity 2019.x or higher

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

---

<div class="post-metadata">

**Author:** ![Arsyl\_Games](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/arsyl_games/32/218135_2.png) [@Arsyl\_Games](https://discussions.unity.com/u/Arsyl_Games)\
**Post date:** [May 18, 2020, 5:54pm UTC](https://discussions.unity.com/t/unity-dll-plugins-for-android/791306/6 "2020-05-18T17:54:54Z")

</div>

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:

 ![5866660--624175--15898244238693150278913981266542.jpg](https://europe1.discourse-cdn.com/unity/original/4X/d/8/4/d842c7aaaa77fe3b7b090e6eed2892e4bc6b7ba8.jpeg)  
 ![5866660--624178--1589824453768889948741018677599.jpg](https://europe1.discourse-cdn.com/unity/original/3X/6/9/69332dfce5b83c812434b2097b41489eefba5504.jpeg)

---

<div class="post-metadata">

**Author:** ![Arsyl\_Games](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/arsyl_games/32/218135_2.png) [@Arsyl\_Games](https://discussions.unity.com/u/Arsyl_Games)\
**Post date:** [May 18, 2020, 6:37pm UTC](https://discussions.unity.com/t/unity-dll-plugins-for-android/791306/7 "2020-05-18T18:37:49Z")

</div>

> [@Tomas1856](#):
>
> So, yes, All Platforms is wrong setting.
> 
> Android Logcat is available only in Package Manager, assuming you’re using Unity 2019.x or higher

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

---

<div class="post-metadata">

**Author:** ![Tomas1856](https://avatars.discourse-cdn.com/v4/letter/t/f08c70/32.png) [@Tomas1856](https://discussions.unity.com/u/Tomas1856)\
**Post date:** [May 18, 2020, 10:01pm UTC](https://discussions.unity.com/t/unity-dll-plugins-for-android/791306/8 "2020-05-18T22:01:57Z")

</div>

> [@Arsyl\_Games](#):
>
> 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:

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

> [@Arsyl\_Games](#):
>
> I have a question. Does native plugins work in Unity free? Or is it Just Unity plus and Unity pro?

Yes, native plugins work with Unity Free.

---

<div class="post-metadata">

**Author:** ![Arsyl\_Games](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/arsyl_games/32/218135_2.png) [@Arsyl\_Games](https://discussions.unity.com/u/Arsyl_Games)\
**Post date:** [May 18, 2020, 10:37pm UTC](https://discussions.unity.com/t/unity-dll-plugins-for-android/791306/9 "2020-05-18T22:37:56Z")

</div>

> [@Tomas1856](#):
>
> 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

---

<div class="post-metadata">

**Author:** ![Tomas1856](https://avatars.discourse-cdn.com/v4/letter/t/f08c70/32.png) [@Tomas1856](https://discussions.unity.com/u/Tomas1856)\
**Post date:** [May 19, 2020, 7:03am UTC](https://discussions.unity.com/t/unity-dll-plugins-for-android/791306/10 "2020-05-19T07:03:53Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Arsyl\_Games](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/arsyl_games/32/218135_2.png) [@Arsyl\_Games](https://discussions.unity.com/u/Arsyl_Games)\
**Post date:** [May 19, 2020, 10:02pm UTC](https://discussions.unity.com/t/unity-dll-plugins-for-android/791306/11 "2020-05-19T22:02:55Z")

</div>

> [@Tomas1856](#):
>
> Try copy pasting the path of a plugin and the contents of its meta file (located next to a plugin) here

> [@Tomas1856](#):
>
> 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](mailto:gamesarsyl@gmail.com)

---

<div class="post-metadata">

**Author:** ![Tomas1856](https://avatars.discourse-cdn.com/v4/letter/t/f08c70/32.png) [@Tomas1856](https://discussions.unity.com/u/Tomas1856)\
**Post date:** [May 20, 2020, 6:54am UTC](https://discussions.unity.com/t/unity-dll-plugins-for-android/791306/12 "2020-05-20T06:54:18Z")

</div>

> [@Arsyl\_Games](#):
>
> 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](mailto:gamesarsyl@gmail.com)

I meant the relative plugin path in your project.

---

<div class="post-metadata">

**Author:** ![Arsyl\_Games](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/arsyl_games/32/218135_2.png) [@Arsyl\_Games](https://discussions.unity.com/u/Arsyl_Games)\
**Post date:** [May 20, 2020, 7:21pm UTC](https://discussions.unity.com/t/unity-dll-plugins-for-android/791306/13 "2020-05-20T19:21:41Z")

</div>

this?

![5882177--626573--Delete.PNG](https://europe1.discourse-cdn.com/unity/original/3X/e/3/e3b0e63c65bf7623054aa5de867ceb95b19224a7.png)

---

<div class="post-metadata">

**Author:** ![Tomas1856](https://avatars.discourse-cdn.com/v4/letter/t/f08c70/32.png) [@Tomas1856](https://discussions.unity.com/u/Tomas1856)\
**Post date:** [May 20, 2020, 8:42pm UTC](https://discussions.unity.com/t/unity-dll-plugins-for-android/791306/14 "2020-05-20T20:42:53Z")

</div>

> [@Arsyl\_Games](#):
>
> this?

I don’t see the full path from this screenshot

---

<div class="post-metadata">

**Author:** ![Arsyl\_Games](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/arsyl_games/32/218135_2.png) [@Arsyl\_Games](https://discussions.unity.com/u/Arsyl_Games)\
**Post date:** [May 21, 2020, 9:55am UTC](https://discussions.unity.com/t/unity-dll-plugins-for-android/791306/15 "2020-05-21T09:55:50Z")

</div>

> [@Tomas1856](#):
>
> I don’t see the full path from this screenshot

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

---

<div class="post-metadata">

**Author:** ![Tomas1856](https://avatars.discourse-cdn.com/v4/letter/t/f08c70/32.png) [@Tomas1856](https://discussions.unity.com/u/Tomas1856)\
**Post date:** [May 21, 2020, 11:44am UTC](https://discussions.unity.com/t/unity-dll-plugins-for-android/791306/16 "2020-05-21T11:44:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Arsyl\_Games](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/arsyl_games/32/218135_2.png) [@Arsyl\_Games](https://discussions.unity.com/u/Arsyl_Games)\
**Post date:** [May 21, 2020, 6:55pm UTC](https://discussions.unity.com/t/unity-dll-plugins-for-android/791306/17 "2020-05-21T18:55:03Z")

</div>

I ha

> [@Tomas1856](#):
>
> 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 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](https://europe1.discourse-cdn.com/unity/original/3X/e/3/e3b0e63c65bf7623054aa5de867ceb95b19224a7.png)  
 ![5882177--626588--Knipsel02.PNG](https://europe1.discourse-cdn.com/unity/original/4X/0/a/6/0a6974843b302b53b05c8dc75e6256bba0abfc9c.png)  
 ![5882177--626591--Knipsel.PNG](https://europe1.discourse-cdn.com/unity/original/4X/8/2/4/8241e855e482868dfb9ab31eb933de2762b36e06.png)

---

<div class="post-metadata">

**Author:** ![Tomas1856](https://avatars.discourse-cdn.com/v4/letter/t/f08c70/32.png) [@Tomas1856](https://discussions.unity.com/u/Tomas1856)\
**Post date:** [May 21, 2020, 7:17pm UTC](https://discussions.unity.com/t/unity-dll-plugins-for-android/791306/18 "2020-05-21T19:17:02Z")

</div>

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

```csharp
dir /B /S > filepaths.txt

```

this will generate filepaths.txt, attach that file here

---

<div class="post-metadata">

**Author:** ![Arsyl\_Games](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/arsyl_games/32/218135_2.png) [@Arsyl\_Games](https://discussions.unity.com/u/Arsyl_Games)\
**Post date:** [May 22, 2020, 3:46pm UTC](https://discussions.unity.com/t/unity-dll-plugins-for-android/791306/19 "2020-05-22T15:46:52Z")

</div>

> [@Tomas1856](#):
>
> If you’re on Windows, hit Windows key and enter Command Prompt or cmd, navigate to your project location and do
> 
> ```csharp
> 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.

---

<div class="post-metadata">

**Author:** ![Arsyl\_Games](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/arsyl_games/32/218135_2.png) [@Arsyl\_Games](https://discussions.unity.com/u/Arsyl_Games)\
**Post date:** [May 23, 2020, 11:00am UTC](https://discussions.unity.com/t/unity-dll-plugins-for-android/791306/20 "2020-05-23T11:00:27Z")

</div>

> [@Tomas1856](#):
>
> If you’re on Windows, hit Windows key and enter Command Prompt or cmd, navigate to your project location and do
> 
> ```csharp
> dir /B /S > filepaths.txt
> 
> ```
> 
> this will generate filepaths.txt, attach that file here

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

[Next page](https://discussions.unity.com/t/unity-dll-plugins-for-android/791306.md?page=2)
