ClassNotFoundException: Didn't find class “android.support.design.R$styleable”

淺唱寂寞╮ 提交于 2019-11-29 02:06:31

Ok finally I solved the problem using Denis Loh suggestion. Key to solve this problem is check the R file of all the included libraries, when this crash happens design library R is not generated and hence not shown in gen folder of your project.

But eclipse will not show you problem why it is not generated(God knows how eclipse work)

So in order to generate R file of design folder

In project.properties of design library set target to 21 or highest available

Clean v7 , design and your project run & enjoy

You can import androidSupportDesign from \sdk\extras\android\support\design and tick "isLibrary", then you import appcombat_v7(lib) to androidSupportDesign. Final you import to your project and clean build all! I hope it can help

All project build with api > 21

you!

How I solve this problem is to run './gradlew clean' first, then try to compile the code with './gradlew installDebug'.

I guess the problem is due to the old R file still remain the same, and the compiler can't find resource related to CoordinatorLayout within the old R file.

May this help.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!