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
The following classes could not be instantiated:
- com.aghajari.emojiview.view.AXEmojiPopupLayout (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.
java.lang.IllegalArgumentException: The passed Context is not an Activity.
at com.aghajari.emojiview.utils.Utils.asActivity(Utils.java:228)
at com.aghajari.emojiview.view.AXEmojiPopupLayout$KeyboardHeightProvider.<init>(AXEmojiPopupLayout.java:269)
at com.aghajari.emojiview.view.AXEmojiPopupLayout.initKeyboardHeightProvider(AXEmojiPopupLayout.java:73)
at com.aghajari.emojiview.view.AXEmojiPopupLayout.<init>(AXEmojiPopupLayout.java:55)
at com.aghajari.emojiview.view.AXEmojiPopupLayout.<init>(AXEmojiPopupLayout.java:49)
at jdk.internal.reflect.GeneratedConstructorAccessor1780.newInstance(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at org.jetbrains.android.uipreview.ViewLoader.createNewInstance(ViewLoader.java:351)
at org.jetbrains.android.uipreview.ViewLoader.loadClass(ViewLoader.java:200)
at org.jetbrains.android.uipreview.ViewLoader.loadView(ViewLoader.java:161)
at com.android.tools.idea.rendering.LayoutlibCallbackImpl.loadView(LayoutlibCallbackImpl.java:294)
at android.view.BridgeInflater.loadCustomView(BridgeInflater.java:417)
at android.view.BridgeInflater.loadCustomView(BridgeInflater.java:428)
at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:332)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:965)
at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:1127)
at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:72)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:1101)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1088)
at android.view.LayoutInflater.inflate(LayoutInflater.java:686)
at android.view.LayoutInflater.inflate(LayoutInflater.java:505)
at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:359)
at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:436)
at com.android.tools.idea.layoutlib.LayoutLibrary.createSession(LayoutLibrary.java:121)
at com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:717)
at com.android.tools.idea.rendering.RenderTask.lambda$inflate$9(RenderTask.java:873)
at com.android.tools.idea.rendering.RenderExecutor$runAsyncActionWithTimeout$3.run(RenderExecutor.kt:192)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
I tried rebuilding the project and refreshing the layout, but it does not work. Please let me know if there's a way I can fix this.
Thank you!
The text was updated successfully, but these errors were encountered:
I am unable to preview the design of my xml file on Android Studio. Here's how I have added it to my code:
Here is the error that it shows:
I tried rebuilding the project and refreshing the layout, but it does not work. Please let me know if there's a way I can fix this.
Thank you!
The text was updated successfully, but these errors were encountered: