Crash loading WearableActivity

后端 未结 2 991
一向
一向 2021-01-21 00:43

I am receiving a crash with the following message while migrating an AppCompatActivity to a WearableActivity.

Caused by: java.lang.IllegalStateException:

2条回答
  •  生来不讨喜
    2021-01-21 01:22

    Without seeing your AndroidManifest the only suggestion I can make is the following:

    uses-library should be application level, not manifest level. Your AndroidManifest should look like this:

    
    
        
    
        
    
            
    
            
       
    
    

    Consider: http://developer.android.com/guide/topics/manifest/uses-library-element.html

提交回复
热议问题