When I create a blank activity in Android Studio 2.0 and try to run it on API 16 it compiles without errors. When I run it on an emulator with API 23 it runs without errors. Whe
In Android Studio I went to File -> Project Structure -> Project.
First I upgraded Gradle to 2.11 and the Android Plugin Version to 2.0.0. Next I synced the project and compiled it. The errors were still there.
After this I downgraded the Android Plugin Version to 1.5.0.
Now when I compile and run the project the errors are gone.