0

I'm developing a Unity app run on Android, a DLL plugin to connect to my Asp.net webapi service. I've tested it in the Unity Editor and the app can call methods in DLL well, DLL is also connected to api successfully. However, When I deployed the app to my phone and debug the server, there's no connection being made from the phone. I've installed the app Network Log to check the network activity of my app but didn't see any activity made. So, how can I figure out where the root of problem is? Is DLL possible to use in Android unity app?

UPDATE: It turned out that only my project have this problem. The DLL we developed by ourselves but my friend implemented it to connect successfully to API on Android. But I didn't

2 Answers 2

1

yes it is possible to use .dlls on Android, but there are some changes with Unity 5.

Maybe this article can help you.

Sign up to request clarification or add additional context in comments.

3 Comments

In my case. Do I need a unmannaged library? Because the only things the mannaged C# DLL file do is connecting to server and get back the result. I tried to copy my DLL to Plugins folder, however, couldn't using it in code
You can read something about it here link I think you need an unmanaged .dll (x64) and then write a c# Unity wrapper for it as described in the article
it turned out that although using the same DLL file we created by ourselves. My friends could use it to connect to API succesfully, but I didn't
0

It seems that I have to put them under Libs folder in Assets to make it works on Android

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.