0
respostas

Room parte 2 da erro nas colunas

Boa tarde poderia me ajudar não consigo sair desse modulo por causa desse erro,fiz tudo igual ao professor Alex Felipe

link do projeto git https://github.com/VanderleiODeMelo/Roomparte2/blob/main/android-room-parte-1-projeto-inicial.rar

Erro
java.lang.RuntimeException: Unable to resume activity {br.com.alura.agenda/br.com.alura.agenda.ui.activity.ListaAlunosActivity}: java.lang.IllegalStateException: Migration didn't properly handle: Telefone(br.com.alura.agenda.model.Telefone).
     Expected:
    TableInfo{name='Telefone', columns={tipo=Column{name='tipo', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0, defaultValue='null'}, alunoId=Column{name='alunoId', type='INTEGER', affinity='3', notNull=true, primaryKeyPosition=0, defaultValue='null'}, id=Column{name='id', type='INTEGER', affinity='3', notNull=true, primaryKeyPosition=1, defaultValue='null'}, numero=Column{name='numero', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0, defaultValue='null'}}, foreignKeys=[ForeignKey{referenceTable='Aluno', onDelete='CASCADE', onUpdate='CASCADE', columnNames=[alunoId], referenceColumnNames=[id]}], indices=[Index{name='index_Telefone_alunoId', unique=false, columns=[alunoId]}]}
     Found:
    TableInfo{name='Telefone', columns={tipo=Column{name='tipo', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0, defaultValue='null'}, numero=Column{name='numero', type='TEXT', affinity='2', notNull=false, primaryKeyPosition=0, defaultValue='null'}, alunoId=Column{name='alunoId', type='INTEGER', affinity='3', notNull=true, primaryKeyPosition=0, defaultValue='null'}, id=Column{name='id', type='INTEGER', affinity='3', notNull=true, primaryKeyPosition=1, defaultValue='null'}}, foreignKeys=[], indices=[]}