Android ClassNotFoundException Android ClassNotFoundException android android

Android ClassNotFoundException


I can't help but notice that your Activity name is couk.doridori.goigoFull.Board but your missing custom View class is couk.doridori.goigo.customUI.GoBoardView ... it looks like you might have two different packages (goigo vs goigoFull).

Are you by any chance doing clever things with library projects? You'll want to be really careful with fully-qualified classnames in code and in layout xml...

(If not please add some more information about your project setup and also paste your layout XML which the layoutinflater is choking on)


I was already discussing this problem here : Android: Unable to instantiate activity / ClassNotFoundException but we couldn't find a definite answer... However John J Smith's answer about the right use of Context is interesting.

Some people also resolved their problem on this thread and gives some ideas.

Hope this helps...

(By the way I'm happy to see another Go game programmer !)


I added a custom layout and started seeing ClassNotFoundException messages after only on the signed application package but the development build was working just fine. I was using ProGuard and the new layout I added was not included in the "exclude" list in the ProGuard config. I included the custom layout in ProGuard exclude list and that fixed the issue for me.