【踩坑】Android编译R.id.xxx时报错 发表于 2022-03-10 更新于 2023-12-09 阅读次数: 前言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——莫言情难忘