javaandroidandroid-studio-3.0nexus-5

Getting Resources Not found exception on Nexus 5


Today I decided to test my application on my old phone, the Nexus 5. I normally code and test on my Nexus 6 and everything works perfect. However, when I attempted to run the app on my Nexus 5 I get this Resources.NotFoundException in my login screen onCreate:

Error message

After doing some digging on Stackoverflow I believe the error might have something to do with the Nexus 5's default layout configuration. But, even after reading countless threads I still don't know where to start.

Here are some more screenshots that may be helpful:

onCreate Where error is thrown

My res files

Any help is appreciated!


Solution

  • Fixed. My Nexus 5 is running API 23, my nexus 6 is running 25. Created new drawable folder in res called "drawable-v23" and pasted all my drawables into it.

    Also did this with my layout folder