Android Studio新建项目就报错:
Cannot access ‘androidx.activity.FullyDrawnReporterOwner’ which is a supertype of ‘cn.dazhou.osddemo.MainActivity’. Check your module classpath for missing or conflicting dependencies
整个类都报错了。本来原来一直都好好的,不知道哪天起新建的就报错了,经过排查,发现把Material
依赖的版本提高即可,创建时的默认版本如下:
implementation("com.google.android.material:material:1.8.0")
改成最新,如下:
implementation("com.google.android.material:material:1.10.0")