{"id":7086,"date":"2014-05-19T04:13:15","date_gmt":"2014-05-19T04:13:15","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/05\/19\/native-load-error-while-using-google-maps-v2-api-collection-of-common-programming-errors\/"},"modified":"2014-05-19T04:13:15","modified_gmt":"2014-05-19T04:13:15","slug":"native-load-error-while-using-google-maps-v2-api-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/05\/19\/native-load-error-while-using-google-maps-v2-api-collection-of-common-programming-errors\/","title":{"rendered":"Native load error while using google maps V2 api-Collection of common programming errors"},"content":{"rendered":"<p>Below is the error i am getting on logCat<\/p>\n<pre><code>03-10 15:55:24.630: E\/Icing(1371): Native load error: Native method not found:\ncom.google.android.gms.icing.impl.NativeIndex.nativeGetVersionCode:()I\n 03-10 15:55:34.890: E\/Icing(1371): Error initializing, resetting corpora: Could not    \ncreate native index\n03-10 15:55:34.900: E\/Icing(1371): Internal init failed\n03-10 15:55:34.900: E\/Icing(1371): Couldn't handle android.intent.action.PACKAGE_ADDED    \nintent due to initialization failure.\n<\/code><\/pre>\n<p>I have followed all the steps in this Maps V2 tutorial<\/p>\n<p>because i am supporting min-sdk=&#8221;8&#8243; I am using Google PLay services for Froyo , I have imported it as a library project and I am also referencing it in my project.<\/p>\n<p><b>The moment i add the following line in my manifest I start getting the above error<\/b> And this error occurs after the app has been installed on the emulator and when eclipse tries to start the main.activity. i am quite sure there is nothing wrong with the manifest because without importing the library and not using the following line the app works fine!<\/p>\n<pre><code>  \n<\/code><\/pre>\n<p>so there are two activities in my app MAIN and SEARCH.<\/p>\n<pre><code>    \n\n\n\n&gt;\n\n    \n\n\n\n    \n\n  \n\n    \n        \n            \n            \n        \n    \n\n      \n        \n            \n\n            \n        \n    \n\n\n<\/code><\/pre>\n<p>two different layouts one for MAIN and other for SEARCH. On click of a button on the main I start SEARCH and the search layout has the MAP FRAGMENT.But like i highlighted above the moment I import maps and Google play services i get the above error the Main activity loads up but when i click on the button which starts the Search activity the application crashes! now again I would highlight that without importing maps library this activity works fine<\/p>\n<p>i dont have the slightest idea as to what is going wrong can anyone please direct me or suggest me as to what all things should i check for?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Below is the error i am getting on logCat 03-10 15:55:24.630: E\/Icing(1371): Native load error: Native method not found: com.google.android.gms.icing.impl.NativeIndex.nativeGetVersionCode:()I 03-10 15:55:34.890: E\/Icing(1371): Error initializing, resetting corpora: Could not create native index 03-10 15:55:34.900: E\/Icing(1371): Internal init failed 03-10 15:55:34.900: E\/Icing(1371): Couldn&#8217;t handle android.intent.action.PACKAGE_ADDED intent due to initialization failure. I have followed all the steps [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7086","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7086","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7086"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7086\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7086"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7086"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7086"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}