类的超类型无法解析

时间:2019-06-17 12:11:02

标签: android material-design bottom-sheet

我有一个带有自定义对话框的模块,该模块扩展了com.google.android.material.bottomsheet.BottomSheetDialog。我的模块具有下一个依赖项:

implementation "com.google.android.material:material:1.0.0"

但是我仍然遇到下一个错误:

Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath:
class myapp.com.ScrollableBottomSheetDialog, unresolved supertypes: com.google.android.material.bottomsheet.BottomSheetDialog

但是在我的自定义类中没有任何import错误...

有什么想法吗?有类似的情况吗?

1 个答案:

答案 0 :(得分:0)

奇怪的情况。我也有1.0.0版本,但是一切正常。尝试“使缓存无效/重新启动”。但是我使用的是BottomSheetDialogFragment而不是BottomSheetDialog。