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

fix compile error on android.