Adjust the logic of select android platform to compatible with the new version of Android SDK.