BottomBar icon indicating copy to clipboard operation
BottomBar copied to clipboard

Rendering Problems: The following classes could not be instantiated: - com.roughike.bottombar.BottomBar

Open SirRob1997 opened this issue 10 years ago • 6 comments

Hey Guys,

so I've compiled: 'com.roughike:bottom-bar:2.0.2' defined my tabs in the xml file: res/xml/bottombar_tabs.xml with the drawables. and added the bottom bar to my layout/activity_main.xml and gave it the resource on the tabs.

However when i click on "Design" instead of "Text" I'm getting the Problem:

Rendering Problems: The following classes could not be instantiated: - com.roughike.bottombar.BottomBar

what am i missing or what do i need to do, to solve my problem? (already tried the exact code as stated in the tutorial)

Greetings Robin

Edit: also added drawables

SirRob1997 avatar Oct 11 '16 22:10 SirRob1997

Test this solution. This answer helped me. [http://stackoverflow.com/questions/26575815/the-following-classes-could-not-be-instantiated-android-support-v7-widget-too]

jcarhuazv avatar Oct 22 '16 22:10 jcarhuazv

Hello there, I am having the same problem, tried the solutions in the link @jcarhuazv provided, but none of them worked for me.

s-nour avatar Oct 23 '16 06:10 s-nour

Hello, I am having the same problem.

Someone can give more detail for fix this ?

aToO57 avatar Nov 04 '16 11:11 aToO57

Same problem here. Invalidate caches does not help.

alaershov avatar Nov 18 '16 08:11 alaershov

I have the same problem...

Lucifer-YU avatar Jan 11 '17 05:01 Lucifer-YU

~~Currently having this problem as well. Unable to preview my layout properly because of it.~~

Edit: Invalidate Cache / Restart worked for me. Go to File --> Invalidate Cache / Restart and click Invalidate and Restart.

I also changed the API version in the editor so you can try that as well.

Original Stack Overflow post

dons20 avatar Jan 27 '17 18:01 dons20