java.lang.RuntimeException: Unable to instantiate activity ComponentInfo/ ClassNotFoundException

前端 未结 10 2001
渐次进展
渐次进展 2020-12-15 23:21

I\'m develop android application and than i wanna additional new Activity i had error on my logcat

My LogCat:

04-19 12:59:17.654: D/AndroidRuntime(18         


        
10条回答
  •  自闭症患者
    2020-12-16 00:25

    I had the same problem, but I had my activity declared in the Manifest file, with the correct name.

    My problem was that I didn't have to imported a third party libraries in a "libs" folder, and I needed reference them in my proyect (Right-click, properties, Java Build Path, Libraries, Add Jar...).

    About how do you declare an activity in the manifest file, is correct use .ActivityName always that activity be in the main package.

提交回复
热议问题