java.lang.RuntimeException: Unable to instantiate activity ComponentInfo

前端 未结 30 2672
感动是毒
感动是毒 2020-11-22 15:15

I was trying to run a sample code While launching the application in the android 1.5 emulator , I got these errors.... Any one have some hint..?

ERROR from LogCat:<

30条回答
  •  执念已碎
    2020-11-22 15:47

    I have tried all above solution but nothing work for me. after I have just add extend activity instead of AppCompatActivity and working fine.

    used

    public class MainActivity extends Activity  
    

    instead of

    public class MainActivity extends AppCompatActivity 
    

    i dont know what real issue was that.

提交回复
热议问题