打开app/build.gradle,在dependencies中添加以下代码 compile 'com.android.support:percent:24.2.1' 这样就能在所有Android版本中使用了 新版已不支持compile