could not find class referenced from method android java.lang.NoClassDefFoundError

前端 未结 3 995
执笔经年
执笔经年 2021-02-10 16:06

I\'m calling for a separate class I have written in same package as my MainActivity class is saved. but when I run the application it gives me java.lang.NoCla

3条回答
  •  礼貌的吻别
    2021-02-10 16:44

    Right Click on your

     project -> Build Path -> Configure Build Path -> Order and Export Tab.
    

    Make sure that "Android Private Libraries" is checked for Export.

    If you've added any libraries from the libs/ folder, remove them as they are automatically added in the "Android Private Libraries" section.

提交回复
热议问题