Failed linking file resources

后端 未结 25 1010
悲&欢浪女
悲&欢浪女 2020-12-01 03:09

This is the java file that is giving the error

package com.example.daksh.timetable;

import android.support.v7.app.AppCompatActivity;
import         


        
25条回答
  •  醉梦人生
    2020-12-01 04:04

    This similar error may also show if you have deleted an Activity java file previously and have not deleted the corresponding xml layout file.

    Delete the xml file for the deleted Activity java file and Clean or Rebuild the project.

    The reason behind it may be because of the mismatch of context in the xml. (This might occur if you are copy-pasting an xml layout code) Match the tools:context to the java file of the activity.

    image

提交回复
热议问题