You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unresolved Reference: Theme_AppCompat_NoActionBar in Android Project #392
You need to add implementation 'com.google.android.material:material:1.8.0'
line into root project/android/app/build.gradle dependencies block like below
dependencies { implementation 'androidx.appcompat:appcompat:1.6.1' implementation 'com.google.android.material:material:1.8.0' // other dependencies... }
instead of setTheme(R.style.Theme_AppCompat_NoActionBar) use setTheme(com.google.android.material.R.style.Theme_MaterialComponents_NoActionBar) in NavigationActivity.kt file
instead of activity.setTheme(R.style.Theme_AppCompat_NoActionBar) use activity.setTheme(com.google.android.material.R.style.Theme_MaterialComponents_NoActionBar) in EmbeddedNavigationViewFactory.kt file.
instead of activity.setTheme(R.style.Theme_AppCompat_NoActionBar) use activity.setTheme(R.style.AppTheme) in EmbeddedNavigationViewFactory.kt file.
and also in NavigationActivity.kt file and your issue is resolved
Activity
22chiragmodh commentedon Jun 3, 2025
You need to add implementation 'com.google.android.material:material:1.8.0'
line into root project/android/app/build.gradle dependencies block like below
dependencies { implementation 'androidx.appcompat:appcompat:1.6.1' implementation 'com.google.android.material:material:1.8.0' // other dependencies... }instead of
setTheme(R.style.Theme_AppCompat_NoActionBar)usesetTheme(com.google.android.material.R.style.Theme_MaterialComponents_NoActionBar)in NavigationActivity.kt fileinstead of
activity.setTheme(R.style.Theme_AppCompat_NoActionBar)useactivity.setTheme(com.google.android.material.R.style.Theme_MaterialComponents_NoActionBar)in EmbeddedNavigationViewFactory.kt file.your issues will solved after above changes.
Krupal001 commentedon Aug 6, 2025
instead of activity.setTheme(R.style.Theme_AppCompat_NoActionBar) use activity.setTheme(R.style.AppTheme) in EmbeddedNavigationViewFactory.kt file.
and also in NavigationActivity.kt file and your issue is resolved