Android: Unable to instantiate activity / ClassNotFoundException

前端 未结 30 3135
粉色の甜心
粉色の甜心 2020-11-27 13:46

I recently published an app to the market and I\'m now getting an error by some user, the app presumably crashes right when it starts. Unfortunately I can\'t contact him dir

30条回答
  •  再見小時候
    2020-11-27 14:28

    This doesn't apply to the OP's question, but it did to mine and it took me quite some time to figure it out: when using the Google Maps API, make sure you've included the library declaration in the application manifest.

    For instance:

    public class MyActivity extends MapActivity {
        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
        }
    
        @Override
        protected boolean isRouteDisplayed() {
            return false;
        }
    
    }
    

    In AndroidManifest.xml:

    
        
        
            
                
                
            
        
    
    

提交回复
热议问题