fix stats collecting related compile errors in android app