Problem when excluding a class for cross-platform build.

I’m getting the following error when trying to make a pc build: The name 'AndroidMultiplayerManager' does not exist in the current context.

The call to a method CreateQuickGame() which is in this class looks like this:

...
else if ((GameData.currentMode == GameMode.Multiplayer)) {
			Instantiate (map1Prefab);
			#if UNITY_ANDROID
				AndroidMultiplayerManager.CreateQuickGame();//This causes Error
			#endif
		}

I have set the target platform to PC, how can I get rid of this error?

I found the problem, I didn’t notice the line#define UNITY_ANDROID at the beginning of the script. After removing it the error is gone.