I am having a little trouble with the complier,
Same code I use on Nexus 5, no error.
as Soon as I use it in Tablet, it crash right away and the error said
and sync project. After added this line and synced again. Next, cleaned project to remove old dex files (may cause problem with dex archives merging), and it helped.