{"id":323,"date":"2016-06-30T20:45:32","date_gmt":"2016-06-30T20:45:32","guid":{"rendered":"http:\/\/fluentreports.com\/blog\/?p=323"},"modified":"2016-07-06T22:29:56","modified_gmt":"2016-07-06T22:29:56","slug":"nativescript-2-1-released","status":"publish","type":"post","link":"http:\/\/fluentreports.com\/blog\/?p=323","title":{"rendered":"NativeScript 2.1 released (and common issues\/fixes)"},"content":{"rendered":"<p>WooHoo, 2.1 is finally released.\u00a0 Lots of things fixed and several other cool new things added; here is some of the changes in v2.1;<\/p>\n<ul>\n<li>TNS Clean command!<\/li>\n<li>Fix for faster Building (really affects Angular 2 builds)<\/li>\n<li>Fix for Google library and default Config issues.<\/li>\n<li>several naviation crashing issues fixed<\/li>\n<li>several LiveSync issues fixed<\/li>\n<li>Lots of other fixes<\/li>\n<\/ul>\n<p>Now to install this awesome new release in four simple steps:<\/p>\n<ol>\n<li>Install the new version of the NativeScript command line\n<ul>\n<li>npm install -g nativescript@latest<\/li>\n<\/ul>\n<\/li>\n<li>Remove the existing platform(s)\n<ul>\n<li>tns platform remove android<br \/>\nAND\/OR<\/li>\n<li>tns platform remove ios<\/li>\n<\/ul>\n<\/li>\n<li>Add the platform(s) you need\n<ul>\n<li>tns platform add android<br \/>\nAND\/OR<\/li>\n<li>tns platform add ios<\/li>\n<\/ul>\n<\/li>\n<li>Install the common core modules\n<ul>\n<li>npm install tns-core-modules@latest --save<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>A couple issues have cropped up in NativeScript 2.1.0 -- Here are the issues with the solutions<\/p>\n<ol>\n<li>If you see \"<strong>error: constructor RunTimeHelper in class RuntimeHelper cannot be applied to given types<\/strong>\" or \"<strong>com.tns.Runtime runtime = new RuntimeHelper(this).initRuntime();<\/strong>\" or \"<strong>reason: actual and formal argument lists differ in length<\/strong>\"<\/li>\n<\/ol>\n<ul>\n<li>This means one of the above is out of sync with the others; all three pieces of the puzzle MUST be 2.1.0 or later.\u00a0\u00a0 This is one of those upgrades that requires everything to be in sync.<\/li>\n<\/ul>\n<p>2. If your app fails to deploy to the phone or android emulator<\/p>\n<ul>\n<li>This means one of the above is out of sync with the others; again all three NativeScript pieces MUST be 2.1.0 or later.<\/li>\n<\/ul>\n<p>3. Missing <em>CFBundleShortVersionString<\/em> \/ <em>CFBundleVersion<\/em> on iOS<\/p>\n<ul>\n<li>Open <em>xcode<\/em>, then open up the file <strong>platforms\/ios\/Internal\/NativeScript.framework\/Info.plist<\/strong> then add both the keys, and set them to 2.1.0<\/li>\n<li>Or once iOS 2.1.1 runtimes has been released; upgrade to the 2.1.1 iOS runtimes.<\/li>\n<\/ul>\n<p>4. <strong>Error: java.lang.runtimeException:Unable to create application<br \/>\n<\/strong>with next error being\u00a0\u00a0<strong> Java.lang.ClassNotFoundException com.tns.FragmentClass<\/strong><\/p>\n<ul>\n<li><strong>npm install tns-core-modules@latest --save<br \/>\n<\/strong>Then you can build\/run it as normal.<\/li>\n<\/ul>\n<p>5, <strong>No errors, but no deploy either (android)<\/strong><\/p>\n<ul>\n<li>npm remove -g nativescript<\/li>\n<li>npm cache clean<\/li>\n<li>npm install -g nativescript<\/li>\n<li>tns platform clean android\u00a0\u00a0 &lt;-- Done inside your project<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>WooHoo, 2.1 is finally released.\u00a0 Lots of things fixed and several other cool new things added; here is some of the changes in v2.1; TNS Clean command! Fix for faster Building (really affects Angular 2 builds) Fix for Google library and default Config issues. several naviation crashing issues fixed several LiveSync issues fixed Lots of&hellip; <a class=\"more-link\" href=\"http:\/\/fluentreports.com\/blog\/?p=323\">Continue reading <span class=\"screen-reader-text\">NativeScript 2.1 released (and common issues\/fixes)<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[15],"tags":[16,60],"class_list":["post-323","post","type-post","status-publish","format-standard","hentry","category-nativescript","tag-nativescript","tag-upgrade","entry"],"_links":{"self":[{"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/323","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=323"}],"version-history":[{"count":11,"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/323\/revisions"}],"predecessor-version":[{"id":340,"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/323\/revisions\/340"}],"wp:attachment":[{"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=323"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=323"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=323"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}