Google map android api v2 application crashes

后端 未结 2 1201
轻奢々
轻奢々 2021-01-06 04:09

I am using Eclipse helios and Android 4.1.2 i have followed the following documentation https://docs.google.com/document/pub?id=19nQzvKP-CVLd7_VrpwnHfl-AE9fjbJySowONZZtNHzw

2条回答
  •  春和景丽
    2021-01-06 04:34

    Whoo...after scratching ma head for so long atlast i got the solution first i did debugging with real device using DDMS following its documentation which is fabulous then i discovered the following error

    12-12 15:08:29.458: E/AndroidRuntime(26382): java.lang.RuntimeException: Unable to start     activity ComponentInfo{com.example.emeterfinalapp/com.example.emeterfinalapp.SelectLocation}:     android.view.InflateException: Binary XML file line #17: Error inflating class fragment
    

    and then after few more lines of code there was another error which was eye catching

    12-12 15:08:29.458: E/AndroidRuntime(26382): Caused by: java.lang.RuntimeException: API key not found.  Check that  is in the  element of AndroidManifest.xml
    

    and then i realised that my api key code is a child of manifest not application which the above error pointed out and then i rectified my manifest to following

    
    
    
    
    
    
      
    
    
    
    
     
    
    
    
    
    
    
    
    
         
        
            
                
    
                
            
        
        
            
        
    
        
            
        
    
         
    
    

    and then it went like a zoom and everythng worked just perfectly...Debugging with real device helped a lot...

提交回复
热议问题