Issue with displaying TabHost Layout in new Intent

后端 未结 9 2044
悲哀的现实
悲哀的现实 2021-01-20 21:05

I am having an issue with using TabHost in a new Intent of type TabActivity which I hope you can point me in the right direction. Funnily it works fine when I try to view it

相关标签:
9条回答
  • 2021-01-20 21:49

    I also had this error. For me it would appear after obfuscation(via ProGuard), pre obfuscation it was fine.

    In the end I renamed my layout file to something more complex and unique, and ProGuard didn't mess up the linking. Bit easer than going down the ProGuard configeration path.

    So my issue was similar to SapphireSun, though expressed via a different process(and post eclipse, just to make things that bit more difficult).

    This is perhaps one of the more obscure ways to get this error, but I thought it worth a mention.

    0 讨论(0)
  • 2021-01-20 21:51

    I also encountered this problem. I had an XML file that wasn't linked against my code properly in my res/layout. When I fixed the naming, the problem went away.

    0 讨论(0)
  • 2021-01-20 21:54

    I am experiencing the same error in a team-project, when using SVN. Sometimes, eclipse uploads classes.dex and resources.ap_ from the bin folder of the project and others get it via SVN update.

    Since these binary files are generated on the individual machines with individual code, thats probably where the error comes from.

    Cleaning the project files (Project -> Clean) always solved the issue for us!

    0 讨论(0)
提交回复
热议问题