Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我不明白项目中的错误。
您正在尝试将 AppCompatDialogFragment 作为 Activity 提供。尝试使用getActivity()而不是this可以解决问题
getActivity()
this