Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7589865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:16:03+00:00 2026-05-30T20:16:03+00:00

I keep getting a FileNotFound Exception, and quite frankly, it makes no sense. Here

  • 0

I keep getting a FileNotFound Exception, and quite frankly, it makes no sense. Here are my files:

custom.xml

<item android:drawable="@drawable/easymode"></item>

main.xml

<Button android:id="@+id/guess" 
android:layout_width="wrap_content" 
android:layout_height="wrap_content" 
android:padding="20dp" 
android:layout_marginBottom="20dp" 
android:onClick="myClickHandler" 
android:background="@drawable/custom"></Button>

I’ve tried moving the background tag above the others to see if that was causing it to fail, it didn’t work. I’ve moved the custom.xml file into a drawable folder, and into the ldpi and mdpi folders but it keeps giving me the same error. Why can’t it find my custom.xml when it’s quite clearly there? R.java also lists it, so I know it’s generated the link to it successfully… Help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T20:16:04+00:00Added an answer on May 30, 2026 at 8:16 pm

    Have you tried building the R file again after saving? It can be a little confusing when working with the Android SDK in Eclipse (i’m guessing you are using Eclipse). After adding your new layout xml, are the ids for buttons and strings correctly parsed and identified in your code?

    I would do a save all and then compile the project and then run it and see if this sorts your problem out.
    The order of the tags makes no difference here as the layout xmls are compiled into a compact resource.

    If it still cannot find the xml I suggest deleting the xml, restart Eclipse and create it again under layout, add your code above to the xml, save, compile and run and see if that sorts it out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I keep getting stuck conceptually on deciding an Exception-handling structure for my project. Suppose
I keep getting empty files generated from running $command = 'mysqldump --opt -h localhost
I keep getting an exception about Linq to Entities not supporting certaion query expressions
I keep getting a compilier error whenever I run this... I am quite sure
I keep getting an exception when I want to display an alertdialog at the
I keep getting a exception when I try to FTP to my Win 2008
I keep getting a NoSuchElement Exception at the line maze[r][c]=scan.next(); . How can I
I keep getting this error here: SEVERE: java.lang.NumberFormatException: For input string: at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at
I keep getting a filterMessages is not a function error. Here's the Backbone View
Keep getting this error after inserting a subdatasheet into a query and trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.