I Android Studio to develop API'm using 0.8.6 and API I layout preview when using 21 Problems are coming in. I get the following error:
Problems rendering: The following classes can not be instantiated: - android.support.v7.widget.Toolbar
I Close SDK build tools up-to-date (21.0.2) as well as full API 21 download and install. My target SDK version is set to 21 on the grill file. If I change the preview to present with API 20, then everything looks fine. The exception description is given below
thanks
exception description java.lang.ClassNotFoundException:.! Android.support.v4.content.ContextCompatApi21 on com.intellij.util.lang on .UrlClassLoader.findClass java.lang.ClassLoader.loadClass (UrlClassLoader.java:148) (ClassLoader.java:424) java.lang.ClassLoader.loadClass On (ClassLoader.java357) android.support.v4.content ContextCompat.getDrawable (ContextCompat.java:319) android.support.v7.internal.widget.TintManager.getDrawable (TintManager.java:133) on android.support.v7.internal.widget.TintTypedArray.getDrawable (on TintTypedArray.java: 62) android.support.v7.widget.Toolbar on (Toolbar.javamore48) android.support.v7.widget.Toolbar. (Toolbar.java:190) on java.lang.reflect.Constructor.newInstance (manufacturer .java: 408) on android.view.LayoutInflater.rInflate_Original (LayoutInflater.java:806) Android. View.LayoutInflater_Delegate.rInflate (layout Inflater_Delegate.java:64) android.view.LayoutInflater.rInflate (LayoutInflater.java:782) android.view.LayoutInflater.inflate (LayoutInflater.java:504) on android.view.LayoutInflater.inflate (LayoutInflater.java:385)
is the most recent version of Android studio and it Fixes many issues API21 Note that (under 'any patch'):
We found many important bugs in the patching system and decided that one of these bugs meant that a new version would be upgraded As a result of the time, a functionally similar installation can result in slightly different binary material as a result (for example, some timestamps are different within .jar files). This meant that the actual binary signature would not match, which broke the application signature check.
We have now found and fixed that bug, but since the previous version has many different binary differences, we can not create a patch to update to the new version, therefore, for this version We will need to download the complete IDE
Then you will need to install it manually.