When I create a new application in Android Studio, a bunch of errors immediately appear. For example:
1) Render problem: Failed to find the style of floatingActionButtonStyle in currnt theme
2) Render problem: Couldn`t reslove resource @ style / Base.Widget.Design.CoordinatorLayout
3) Using privet resources: The resource @ string / appbar_scroling_view_behavior is maked as private in com.android.support.design
4) Missing styles. Is the crrect theme chosen for this layout?
5) Failed to instantiate one or more classes
values styles.xml
<resources> <!-- Base application theme. --> <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme here. --> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark">@color/colorPrimaryDark</item> <item name="colorAccent">@color/colorAccent</item> </style> <style name="AppTheme.NoActionBar"> <item name="windowActionBar">false</item> <item name="windowNoTitle">true</item> <item name="coordinatorLayoutStyle">@style/Base.Widget.Design.CoordinatorLayout</item> </style> <style name="AppTheme.AppBarOverlay" parent="Base.ThemeOverlay.AppCompat.Dark.ActionBar" /> <style name="AppTheme.PopupOverlay" parent="Base.ThemeOverlay.AppCompat.Light" /> styles.xml (v21)
<resources> <style name="AppTheme.NoActionBar"> <item name="windowActionBar">false</item> <item name="windowNoTitle">true</item> <item name="android:statusBarColor">@android:color/transparent</item> <item name="coordinatorLayoutStyle">@style/Base.Widget.Design.CoordinatorLayout</item> </style> I tried to correct the errors with these answers:
but does not help. When creating an application, activity_main made a type - Navigation Drawer Activity. All sdk components are loaded. Why is that? Why did I not write so many errors when I did not even write a line of code, I didn’t even add an element to it.
implementationgradlelook / show - Jarvis_J