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 928275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T19:59:07+00:00 2026-05-15T19:59:07+00:00

I googled a lot to find various hints what could cause this problem. Many

  • 0

I googled a lot to find various hints what could cause this problem. Many of them on this forum, but nothing works.

I installed the sdk from scratch on 3 different machines (xp, macos snow leopard, leopard) and always the same problem, that even the sample code in the android sdk doesn’t compile.
After hours of looking through the xml files I recognized, that when I remove ‘ from strings the sample code of the sdk will compile.
So does a new project, as long there is no change needed in the R.java file.
As soon as I try to add a button with findViewByID, I get the error that the field R.id cannot be resolved. No other changes were done to the project.

As mentioned before I tried various things, including:
clean project, rebuild
restart eclipse
update sdk (even tough I installed the new sdk)
no uppercase letters
…
Install sdk, latest eclipse classic on a clean machine

I don’t think it’s an issue of the code itself, because even the sample code provided by the sdk doesn’t compile without removing ‘ from the xml.

Please somebody has some hints and ideas where to look next please?

  • 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-15T19:59:08+00:00Added an answer on May 15, 2026 at 7:59 pm

    open the “problems” window in eclipse, if there are any issues in any of the xml files, R.java will not generate.

    if there are single quotes in the xml files, they should be replaced with double quotes. the XML standard is that all attribute values be surrounded by double quotes, not single quotes.

    Invalid

    <?xml version='1.0' encoding='utf-8' ?>
    <resources>
      <string name='some_name'>value</string> 
    </resources>
    

    Valid

    <?xml version="1.0" encoding="utf-8" ?>
    <resources>
      <string name="some_name">value</string> 
    </resources>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I googled a lot, and could not find a single open source implementation of
I've done a lot of searching on SO and google around this problem, but
I googled a lot now, but all I find are Hello World examples for
I googled a lot and read through the wiki, just could not find out
Last night, I Googled a lot and couldn't find the solution for my problem:
I am sorry! I have googled this a lot and cannot find an answer!
I've googled a lot, but still can't find a way to deploy my site
I Googled a lot, but can't find the proper answer. I've got two activities
I have googled a lot to know how scanf and printf works. But did
I know there's a lot of resource for this via google, but I just

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.