jmease
jmease

Reputation: 2535

MonoDevelop "The type or namespace 'Android' could not be found"

I've mainly been using Mono for Android via Visual Studio, but have switched over to OS X and want to use MonoDevelop. From the main MonoDevelop menu, I click File => New => Solution. I select Mono For Android Application, give it a name and leave the location at Users/myname/Projects by default. It creates the shell project with Activity1.cs with the basic Button. If I try to build or debug the project, all of the using directives error out stating the The type or namespace 'Android' could not be found. I've googled that exact message and found no matches. I just downloaded MonoDevelop, all the required SDKs and Mono for Android yesterday on my Mac. What the heck is going on?

Upvotes: 2

Views: 3159

Answers (2)

jmease
jmease

Reputation: 2535

So the instructions for downloading say to download Runtime OR SDK before installing MonoDevelop. So I only downloaded SDK. Once I installed runtime this error went away. Still can't debug to my device, but that is a separate issue.

Upvotes: 1

Radius
Radius

Reputation: 348

I didn't have any of those issues when I installed everything using the Xamarin installer. You might be able to fix it going to references and check if Mono.Android.dll is in red. In that case go to edit references and try to find it.

It should be in /Developer/usr/lib/mandroid/platforms

Upvotes: 0

Related Questions