android: no class def found error from library project

前端 未结 4 2024
庸人自扰
庸人自扰 2021-01-18 18:32

i am getting a noclassdeffound exception, when running my app with the emulator:

@Override
public void onCreate(Bundle savedInstanceState) 
{
    super.onCre         


        
4条回答
  •  难免孤独
    2021-01-18 19:04

    I think you should use

     Intent myScreen = new Intent();
        myScreen.setClassName(YourCurrentScreen.this,
    fullpackagename.yourclassName.class.getName());
        startActivityForResult(myScreen, 0);
    

    This would definitely work

提交回复
热议问题