masmic
masmic

Reputation: 3564

Import R with downloaded source code

I've downloaded the ContactsList example from google's developer site. When creating a new project with this code, I've got several errors, and I realized that all are because the same thing: It doesn't get the R resources, so it is importing the android.R.

I've tryed celaning the project, trying to solve layout's issues if the had, etc.. but still doesn't create the R.java file in "gen".

So, I don't know what I'm forgoting to do because I tought that code downloaded directly from google should work fine.

Upvotes: 1

Views: 74

Answers (1)

Subburaj
Subburaj

Reputation: 5192

Check for the following:

  1. Check whether there is error in your xml file.
  2. Check whether you are missing any jar(additional) file.
  3. Try to change your target sdk to some other and change to original.

Upvotes: 1

Related Questions