【踩坑】Android编译R.id.xxx时报错

前言

Android编译R.id.xxx时报错:Ambiguous method call: both 'AppCompatActivity.findViewById(int) (In xxx\platforms\android-24\android.jar!\android\app\Activity.class)' match

原因

  • 可能是Gradle有误

解决问题

  • 刷新Gradle

完成

参考文献

CSDN——莫言情难忘