3

enter image description here

As showed in the picture above. Android Studio shows that I have two elements with the same +id in the same layout. But that is not true. I would like to know why this happen.

Thanks

bheatcoker
  • 539
  • 5
  • 10
  • 1
    Probably it's a bug on Android Studio, you can show us your `activity_checknumber.xml` and we'll see if there is something wrong. You also can try with menu `File -> Invalidate cache / Restart -> Invalidate and Restart`, sometimes Android Studio has the symbols wrong. – Arturo Aug 27 '15 at 12:52
  • 1
    Perhaps there are two versions of your `activity_checknumber.xml` - for example for different screen dimensions. Go to both declarations and check if the files are the same. – Victoria Aug 27 '15 at 13:59
  • @Victoria thanks for the answer, but there are no two versions. In that case you would see something like this: **activity_checknumber.xml (layout) activity_checknumber.xml (layout-large)** – bheatcoker Aug 27 '15 at 15:49
  • @Arturo your answer solved the problem. Thanks. – bheatcoker Aug 27 '15 at 15:50
  • Glad to help, remember marking the answer as solved :) – Arturo Aug 27 '15 at 21:09
  • @Arturo can you post it as an answer and then I click it as solved. – bheatcoker Aug 28 '15 at 14:44
  • Doesn't matter, mark your answer as solution. – Arturo Aug 28 '15 at 21:40

1 Answers1

3

Arturo your answer solved the problem.

File -> Invalidate Cache/ Restart...-> Invalidate and Restart.

Thanks a lot.

bheatcoker
  • 539
  • 5
  • 10