not assignable to 'android.app.activity' extends application

后端 未结 1 1097
北恋
北恋 2021-01-06 10:43

I am implementing Adobe Creative SDK. I am getting the following error in in my my manifest file:

\'com.example.nick.avierytest2.MainActivity is not assign         


        
相关标签:
1条回答
  • 2021-01-06 11:31
    MainActivity extends Application
    

    Of course an Application is not assignable to an Activity.

    Either change this to MainActivity extends Activity, or move the android:name=".MainActivity" reference in the manifest to the application tag (and remove that activity). In the latter case also consider renaming the class from MainActivity to e.g. MyApplication.

    0 讨论(0)
提交回复
热议问题