I am getting the error: \"Ambiguous method call\" on initializing Toolbar using Android Studio 3.0 RC1. I have extended my Activity with AppCompatActivity and compiling my appli
This can suddenly appear when running a code analyzer like FindBugs-IDEA. A quick way to clear the warning is to temporarily change the buildToolsVersion
in your app/build.gradle
then change it back again.
For example, follow these steps:
buildToolsVersion
to '26.0.1'
then sync project (press the 'Sync Now' button when it appears at the top)buildToolsVersion
back to whatever you had before.This should clear the error.