Check out what version of compileSdkVersion is set in Your project gradle app file. Run app on emulator with the same version. Try preview source code of internal method Problem solved. Post navigation Popular sites steal Your logins and passwords from build-in password managers Rooting Nexus 6 7.1.1