How to remove it? The following classes could not be instantiated android.support.v7.widget.AppCompatTextView

 Rendering Problems The following classes could not be instantiated: - android.support.v7.widget.AppCompatTextView (Open Class, Show Exception, Clear Cache) Tip: Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE. If this is an unexpected error you can also try to build the project, then manually refresh the layout. Exception Details java.lang.NullPointerException  at android.content.res.Resources_Delegate.getValue(Resources_Delegate.java:747) at android.content.res.Resources.getValue(Resources.java:1286) at android.support.v4.content.res.ResourcesCompat.loadFont(ResourcesCompat.java:212)  at android.support.v4.content.res.ResourcesCompat.getFont(ResourcesCompat.java:206)  at android.support.v7.widget.TintTypedArray.getFont(TintTypedArray.java:119)  at android.support.v7.widget.AppCompatTextHelper.updateTypefaceAndStyle(AppCompatTextHelper.java:208)  at android.support.v7.widget.AppCompatTextHelper.loadFromAttributes(AppCompatTextHelper.java:152)  at android.support.v7.widget.AppCompatTextHelperV17.loadFromAttributes(AppCompatTextHelperV17.java:38)  at android.support.v7.widget.AppCompatTextView.<init>(AppCompatTextView.java:81)  at android.support.v7.widget.AppCompatTextView.<init>(AppCompatTextView.java:71)  at java.lang.reflect.Constructor.newInstance(Constructor.java:423)  at android.view.LayoutInflater.onCreateView(LayoutInflater.java:717)  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:785)   at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)   at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:858)   at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:70)   at android.view.LayoutInflater.rInflate(LayoutInflater.java:834)   at android.view.LayoutInflater.inflate(LayoutInflater.java:492)   at com.android.layoutlib.bridge.bars.CustomBar.<init>(CustomBar.java:95)   at com.android.layoutlib.bridge.bars.StatusBar.<init>(StatusBar.java:67)   at com.android.layoutlib.bridge.impl.Layout.createStatusBar(Layout.java:221)   at com.android.layoutlib.bridge.impl.Layout.<init>(Layout.java:143) Copy stack to clipboard 

I tried, probably, all the methods that I found on the Internet, nothing helped. None of the activations use AppCompatTextView . All link libraries:

 compile 'com.android.support:recyclerview-v7:26.0.1' compile 'com.android.support:design:26.0.1' compile 'com.android.support:support-annotations:26.0.1' compile 'com.android.support:appcompat-v7:26.0.1' compile 'com.android.support:support-v4:26.0.0-alpha1' compile 'com.mikepenz:materialdrawer:5.9.5' compile 'com.squareup.okhttp3:okhttp:3.8.1' 

Maybe there is a way to hide this ad in the settings? Or the ability to explain Android Studio that everything is connected?

The topic is parent='Theme.AppCompat.Light.NoActionBar'

Ps It interferes and does not allow to do the design, gets out after any changes in the xml code, after a week of work already zadolbalas close the cross.

Is disturbing!

    2 answers 2

    In the end, figured out. Seen on the Internet the answer is' Add to parent Base. in the beginning ', but gave an error, because Base.Theme.AppCompat.Light.NoActionBar does not exist.

    How to remove this ad if you have a NoActionBar

    style.xml Add these lines to <resources>

     <style name="AppTheme.NoActionBar"> <item name="windowActionBar">false</item> <item name="windowNoTitle">true</item> </style> 

    style.xml Replace parent in AppTheme with this

     parent="Base.Theme.AppCompat.Light" 

    In ThemeEditor select AppTheme.NoActionBar

    As a result: the ad has disappeared!) Maybe someone will help

      Well, if you just pick it up and hide it, just like you tried to do, then wrap the problematic piece of code in a tray ketch. Or click on the options that you offer:

       Tip: Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE. If this is an unexpected error you can also try to build the project, then manually refresh the layout. 
      • try catch does not work, this error does not come out of my files, rebuild + refresh tried, did nothing. About isInEditMode() I understood almost nothing, I understood only that I had to write it to my files, and as I said, the error does not come from my files - Mr Klonwar