{"id":2296,"date":"2014-09-01T21:15:11","date_gmt":"2014-09-01T09:15:11","guid":{"rendered":"https:\/\/www.deltics.co.nz\/blog\/?p=2296"},"modified":"2014-09-01T21:15:11","modified_gmt":"2014-09-01T09:15:11","slug":"sign-here-please-using-this-specific-pen","status":"publish","type":"post","link":"https:\/\/www.deltics.co.nz\/blog\/posts\/2296\/","title":{"rendered":"Sign Here Please&#8230; (Using This Specific Pen)"},"content":{"rendered":"<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">[Estimated Reading Time: <\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">minutes]<\/span><\/span><p>My original <strong>Android<\/strong> version of <a href=\"https:\/\/play.google.com\/store\/apps\/details?id=itchbox.txt2park\">TXT-2-PARK has been in the Google Play Store<\/a> for a little over a week now.  But it was only on Saturday that I decided to install the release version onto my phone from the store itself, and found a problem.<\/p>\n<p><!--more--><\/p>\n<p>The application would download just fine, but at the point at which it started installing the <strong>Play Store<\/strong> app would complain, reporting that the &#8220;<em>Package is not signed correctly<\/em>&#8220;, or words to that effect, and refuse to install the app.<\/p>\n<p>This was puzzling since I had had no such problem with my previous published app (the <a href=\"https:\/\/play.google.com\/store\/apps\/details?id=nz.co.deltics.batterywidget\">Simple Battery Widget<\/a>).  Not to mention that any issue with the signing of the app would surely have been identified when I uploaded the APK ?<\/p>\n<p>After a bit of digging I found a number of people had had similar issues.<\/p>\n<p>In some cases, where a dev\/debug build had previously been installed on a device (as in my case), the problem was resolved by clearing the <strong>Play Store<\/strong> app cache, in others it required clearing <strong><em>ALL<\/em><\/strong> the <strong>Play Store<\/strong> app data.<\/p>\n<p>Unfortunately this didn&#8217;t fix the problem for me.<\/p>\n<p>A little more digging threw up the fact that for some reason some devices &#8211; but not all &#8211; seem to have trouble validating app signatures if they have been signed with the <strong>Java 7<\/strong> or <strong>8<\/strong> SDK&#8217;s.  The suggested solution in that case is to revert to the <strong>Java 6 SDK<\/strong>.<\/p>\n<p>In my current <strong>Windows 8.1 VM<\/strong> where I do my <strong>RO Elements<\/strong> work, I had indeed replaced my previous <strong>Java 6 SDK<\/strong> with <strong>Java 7<\/strong>.<\/p>\n<p>So I installed the <strong>Java 6 SDK<\/strong>, updated the necessary references in the <strong>PATH<\/strong> and <strong>Visual Studio<\/strong> (<strong>Oxygene<\/strong>) settings, rebuilt my <strong>Android<\/strong> solution, re-submitted to the <strong>Play Store<\/strong> and&#8230; problem solved.  \ud83d\ude42<\/p>\n<p>Which just leaves the question of why the <strong>Play Store<\/strong> validation process accepts the signature on an app which the <strong>Play Store<\/strong> <em>app<\/em> then rejects.<\/p>\n<p>But whatever the reason, it seems that signing apps with <strong>jarsigner<\/strong> from the <strong>Java 6 SDK<\/strong> is the way to avoid this particular problem.<\/p>\n<p><strong>NOTE:<\/strong> <em>This is not an <strong>Oxygene<\/strong> issue but one that could affect the signing of any <strong>Android<\/strong> app using the Java SDK tools.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">[Estimated Reading Time: <\/span> <span class=\"rt-time\"> 2<\/span> <span class=\"rt-label rt-postfix\">minutes]<\/span><\/span>My original Android version of TXT-2-PARK has been in the Google Play Store for a little over a week now. But it was only on Saturday that I decided to install the release version onto my phone from the store itself, and found a problem.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[212,205,4,180],"tags":[],"class_list":["post-2296","post","type-post","status-publish","format-standard","hentry","category-android-2","category-cooper","category-delphi","category-oxygene"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1TKYv-B2","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.deltics.co.nz\/blog\/wp-json\/wp\/v2\/posts\/2296","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.deltics.co.nz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.deltics.co.nz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.deltics.co.nz\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.deltics.co.nz\/blog\/wp-json\/wp\/v2\/comments?post=2296"}],"version-history":[{"count":1,"href":"https:\/\/www.deltics.co.nz\/blog\/wp-json\/wp\/v2\/posts\/2296\/revisions"}],"predecessor-version":[{"id":2297,"href":"https:\/\/www.deltics.co.nz\/blog\/wp-json\/wp\/v2\/posts\/2296\/revisions\/2297"}],"wp:attachment":[{"href":"https:\/\/www.deltics.co.nz\/blog\/wp-json\/wp\/v2\/media?parent=2296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.deltics.co.nz\/blog\/wp-json\/wp\/v2\/categories?post=2296"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.deltics.co.nz\/blog\/wp-json\/wp\/v2\/tags?post=2296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}