compile with android 17. fix compile error in gradle example.