Ask A Question
0

String types not allowed (at 'id' with value ' @id/bAdd')

Asked by AndroidDev on 07/28/2012 at 10:36 AM

I am getting an error saying String types not allowed (at 'id' with value ' @id/bAdd')

  • I've cleaned the project.
  • Everything was working earlier, I don't what happened, causing this error.

     <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >
    
    <TextView
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:layout_centerVertical="true"
        android:text="Your total is 0"
        android:textSize="45dp"
        android:layout_gravity="center"
        android:gravity="center"
        android:id="@+id/tvDisplay"
        tools:context=".StartingPoint" />
    
     <Button 
        android:layout_width="250dp"
        android:layout_height="wrap_content"
        android:text="Subtract One"
        android:layout_gravity="center"
        android:textSize="20dp"
        android:id="+@id/bSub"
        />
    
    
    <Button 
        android:layout_width="250dp"
        android:layout_height="wrap_content"
        android:text="Add One"
        android:layout_gravity="center"
        android:textSize="20dp"
        android:id="+@id/bAdd"
    
        />
    

View Full Answer On Stackoverflow

Responses

No responses yet. Be the first one!

    [Some content on this page is from Stackoverflow]