Android FATAL EXCEPTION MAIN: java.lang.RuntimeException: Unable to start activity ComponentInfo

后端 未结 5 1368
感动是毒
感动是毒 2021-01-19 02:40

I am nubie at programming android and I know here on fourm is a lot of pages discrabing solution for my problem, but now I lose 2 days in still don\'t get the solution. Plea

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-19 03:32

    I was having this error and after hours of searching I've came out it was my mistake (Oh! But this is impossible! LOL).

    The problem for me was that I've added the android:theme="@style/Theme.appcompat.Light" to the layout XMLs instead of the app manifest.

    As soon I've removed the atributes from the layouts and replaced the one on the manifest everything worked like expected.

提交回复
热议问题