Xcode 4.4: Xcode can’t be installed on because the version of OS X is too new

Simply delete the preferences plist of the App Store App. (Execute the following command in your terminal)

rm ~/Library/Preferences/com.apple.appstore.plist
rm -r ~/Library/Saved\ Application\ State/com.apple.appstore.savedState
rm -r ~/Library/Caches/com.apple.appstore
rm -r /private/var/folders/*/*/*/com.apple.appstore

Restart the App and you will be able to download Xcode 4.4.