Android: Unable to find explicit activity class… startActivity from a PreferenceActivity

前端 未结 6 1433
既然无缘
既然无缘 2020-11-30 14:19

I\'m trying to start a new Activity from a PreferenceActivity. However, it fails with \"Unable to find explicit activity class. Have you declared this activity in your Andro

6条回答
  •  日久生厌
    2020-11-30 14:47

    For me this error occurred because I had moved my activity class file to a different package and for some reason Eclipse didn't refactor it correctly. Always use a fully qualified name for your activity and double-check that it is accurate.

提交回复
热议问题