Skip to content Skip to sidebar Skip to footer

"type Or Namespace Box2d Could Not Be Found" On Android (xamarin/cocossharp)

Im building a simple game with Xamarin/Cocossharp in a Shared Project. I added some physics with Box2D and everything works well on WP8.1. I import Box2D and i access to the metho

Solution 1:

After struggling around with this i managed to fix this:

As pointed out from Sven-Michael in his answer the solution was to install:

CocosSharp.PCL.Shared

from NuGet. In my case was only necessary to add the reference to the Box2D.DLL file contained into the package.

The reason why it was not working for me it's probably that because of trying to solve this problem I've messed up whit my solution and caused other problems. So I created a new Project from skratch and I've imported my source code again.

Solution 2:

Ensure that you have installed CocosSharp.PCL.Shared to your Android project.

E.g. via PM-Comsole:

 Install-Package CocosSharp.PCL.Shared

But it can be installed via NuGet, too. This will add box2d and some other dependencies automatically.

Post a Comment for ""type Or Namespace Box2d Could Not Be Found" On Android (xamarin/cocossharp)"