【英文】Android编译R.id.xxx时报错

Preface

Error occurs when compiling Android R.id.xxx: Ambiguous method call: both 'AppCompatActivity.findViewById(int) (In xxx\platforms\android-24\android.jar!\android\app\Activity.class)' match

Cause

  • It may be a Gradle error

Solution

  • Refresh Gradle

Finished

References

CSDN - Mo Yan Qíng Nán Wàng