fix compile error on android.
Merge pull request #7995 from Dhilan007/v3

fix compile error on android.