这是我的构建 gradle 文件
implementation 'com.google.firebase:firebase-analytics:17.2.0'
implementation 'com.google.firebase:firebase-database:19.1.0'
implementation 'com.github.jd-alexander:android-flat-button:v1.1'
implementation 'com.rengwuxian.materialedittext:library:2.1.4'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.firebaseui:firebase-ui-database:3.3.0'
implementation 'androidx.cardview.widget.CardView'
最佳答案
改变
implementation 'androidx.cardview.widget.CardView'
到
implementation 'androidx.cardview:cardview:1.0.0'
androidx.cardview.widget.CardView
是要在代码和布局中使用的类的名称。 androidx.cardview:cardview:1.0.0
是包含 CardView
的库的名称零件。
关于android - 错误 : Supplied String module notation 'androidx.cardview.widget.CardView' is invalid,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58470428/