x


Error Building Player: Extracting dlls

I am trying to build my unity project for android. I have added a dll from a separate visual studio project into my unity project to make some web service calls easier to handle.

I have the dll referenced from monodevelop, as well as dropped in a 'plugin' folder on the Asset level in my unity project.

I have set my .NET compatibility to 2.0 (from 2.0 subset)

The dlls were built in .NET 3.5.

The project runs fine when I hit the 'play' button in unity.

When I try to build for android, I get the following error:

TypeLoadException: A type load exception has occurred. UnityEditor.HostView:OnGUI()

Error building Player: Extracting referenced dlls failed.

I have no idea what the problem is. I had enough of a headache trying to get the dlls working as expected in the unity project. Everything seems to work fine until I go to build/export. Help!

more ▼

asked Aug 07 '12 at 03:38 AM

techshaman gravatar image

techshaman
80 6 7 11

Also note: I have tried restarting Unity and my comp. Tried re-building the dlls and re-adding them to the Unity project.

Aug 07 '12 at 03:39 AM techshaman
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

OK after much tinkering I have resolved this issue.

The original VS2010 project that I built my included dll from also had a reference to a MySQL dll. Adding a copy of that dll into the 'Plugin' folder on my project resolved the issue - I can now build to android no problems.

I'm not sure if I am supposed to mark answers to my own question as accepted? Let me know and I will do so.

more ▼

answered Aug 07 '12 at 12:10 PM

techshaman gravatar image

techshaman
80 6 7 11

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2496
x1952
x665
x235
x12

asked: Aug 07 '12 at 03:38 AM

Seen: 678 times

Last Updated: Aug 07 '12 at 12:10 PM