NOTE: This project contains resource errors, so aapt did not succeed, which can cause rendering failures. Fix resource problems first.


NOTE: This project contains resource errors, so aapt did not succeed, 
which can cause rendering failures. Fix resource problems first.

Failed to convert @drawable/nav_bar into a drawable
Failed to convert @drawable/hr_line into a drawable
Couldn't resolve resource @drawable/nav_bar
Couldn't resolve resource @drawable/hr_line
Exception details are logged in Window → Show View → Error Log

If you get such errors in Eclipse Android SDK's Graphical Layout then the reason may be some missing XML or images under res-> drawable folder, if you read carefully below the note error message you would see that reasons causing these errors, for me its because I have used nav_bar.xml, hr_line.xml resources in my current layout but are missing under drawable folder.

Solution:

Simply add the missing files are stated in the note.




Recent Posts:




Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.