Android Runtime and Nullpoint Exceptions

前端 未结 1 1002
时光说笑
时光说笑 2021-01-25 02:33

I have Parse initialization in a class named (ParseInitialization.java) that extends Application and while running my application (MainActivity.java) I got a RuntimeException an

相关标签:
1条回答
  • 2021-01-25 03:28

    ParseInitialization is a application, not an activity. If you want it as an activity please change the java code. If it is an Application then you need to change your androidManifest

    Sample of Application declaration:

     <application
            android:name="com.example.baharat2.ParseInitialization" >
    
    ....
    
    </application>
    
    0 讨论(0)
提交回复
热议问题