换成:import androidx.appcompat.app.AppCompatActivity;
support包换成Androidx包
常用的包
import android.content.BroadcastReceiver;
import android.content.Intent;
import android.widget.Toast;
import android.content.Context;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;