android.content.ActivityNotFoundException:

前端 未结 24 2191
一生所求
一生所求 2020-11-22 10:38

I am getting this exception while I am trying to call an activity from another one. The complete exception is

android.content.ActivityNotFoundExcept

24条回答
  •  南旧
    南旧 (楼主)
    2020-11-22 11:34

    I had the same issue. I tried everything but the error, which I sorted out later, was that there was a space left between double quotes and my class name. It has to be: intent.setClassName("com.x.y","com.x.y.className")

    not

    intent.setClassName("com.x.y","  com.x.y.className")
    

提交回复
热议问题