Android - Activity Not Found Exception

前端 未结 13 1814
春和景丽
春和景丽 2020-11-30 10:05

I am using startActivity to call another Activity and I get the \"Activity Not Found Exception\". Here is my code:

  TextView textView = (TextView) itemClic         


        
13条回答
  •  借酒劲吻你
    2020-11-30 10:25

    Not only need you add your Activity in AndroidMainifest.xml like this:

    
    

    but also you should confirm your package path.

    For example,my activity is in com.demo package. The head of the AndroidMainifest should write the same package path,like this:

    
    

提交回复
热议问题