Reputation: 3034
After today's work on my Android app, this started happening:
1: Android Studio say that the ID: welldana_image isn't there, even though it's right above: (Image below)
^ This problem persists all the way through this .xml
file (activity_calculate_mine.xml
)
2: The two project "show package" types aren't matching. In the first picture (Android style), the layout file activity_calculate_mine.xml
isn't there, but in the second (Package style) picture, it is. (Pictures below)
EDIT: Everything works fine. I just don't want to push this to the marketplace, and suddenly it won't work. But everything works fine at the moment, though seeing these errors.
EDIT 2: Now this has happened? Is there an error in my manifest that I can't spot?
EDIT 3: Luckily I saved myself a copy of the project before everything went nuts. Apparently I deleted the activity_calculate_mine.xml
. I solved this problem by simply placing the old version in the same directory as of before, and then just copy pasting the activity_calculate_mine.xml
back into it's original placement.
Problem solved. Thank you.
Upvotes: 1
Views: 54
Reputation:
Remove the "+" sign in the line android:layout_below="@+id..." The @+id defines an id value, the @id referes to one.
Change this:
android:layout_below="@+id/welldana_image"
To this:
android:layout_below="@id/welldana_image"
Upvotes: 1