I have had this same issue as discussed in
CodePudding user response:
CodePudding user response:
Refer the issue and configuration
Open the
build.gradle
file for your application.Make sure that the repositories section includes Google's Maven Repository google(). For example:
allprojects { repositories { google() centre() } }
Add the library to the dependencies section:
dependencies {
// ...
implementation 'com.google.android.material:material:1.7'
// ...
}
Set the light theme in /android/app/src/main/res/values/styles.xml: content_copy change
to
<style name="NormalTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
Set the dark theme in /android/app/src/main/res/values-night/styles.xml content_copy change
to
<style name="NormalTheme" parent="Theme.MaterialComponents.DayNight.NoActionBar">