fixed compile fail on android.
Merge pull request #6678 from Dhilan007/v3

fixed compile fail on android.