{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/2258","repository_url":"https://api.github.com/repos/NativeScript/nativescript-cli","labels_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/2258/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/2258/comments","events_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/2258/events","html_url":"https://github.com/NativeScript/nativescript-cli/issues/2258","id":191652415,"number":2258,"title":"Build failing on android with 2.4.0","user":{"login":"enchev","id":5804953,"avatar_url":"https://avatars.githubusercontent.com/u/5804953?v=3","gravatar_id":"","url":"https://api.github.com/users/enchev","html_url":"https://github.com/enchev","followers_url":"https://api.github.com/users/enchev/followers","following_url":"https://api.github.com/users/enchev/following{/other_user}","gists_url":"https://api.github.com/users/enchev/gists{/gist_id}","starred_url":"https://api.github.com/users/enchev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enchev/subscriptions","organizations_url":"https://api.github.com/users/enchev/orgs","repos_url":"https://api.github.com/users/enchev/repos","events_url":"https://api.github.com/users/enchev/events{/privacy}","received_events_url":"https://api.github.com/users/enchev/received_events","type":"User","site_admin":false},"labels":[{"id":422417201,"url":"https://api.github.com/repos/NativeScript/nativescript-cli/labels/T:Question","name":"T:Question","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-25T08:56:18Z","updated_at":"2016-11-25T08:56:19Z","closed_at":null,"body":"_From @NgSculptor on November 22, 2016 7:31_\n\n### Did you verify this is a real problem by searching [Stack Overflow]\r\nYes\r\n\r\n### Tell us about the problem\r\nBuild is failing on android after update\r\n\r\n### Which platform(s) does your issue occur on?\r\nAndroid\r\n\r\n### Please provide the following version numbers that your issue occurs with:\r\n\r\nThis is the package.json file that I have:\r\n\r\n```\r\n\"nativescript\": {\r\n    \"id\": \"io.egen.protec\",\r\n    \"tns-ios\": {\r\n      \"version\": \"2.4.0\"\r\n    },\r\n    \"tns-android\": {\r\n      \"version\": \"2.4.0\"\r\n    }\r\n  },\r\n  \"dependencies\": {\r\n    \"@angular/common\": \"2.0.0\",\r\n    \"@angular/compiler\": \"2.0.0\",\r\n    \"@angular/core\": \"2.0.0\",\r\n    \"@angular/http\": \"2.0.0\",\r\n    \"@angular/platform-browser\": \"2.0.0\",\r\n    \"@angular/platform-browser-dynamic\": \"2.0.0\",\r\n    \"@angular/platform-server\": \"2.0.0\",\r\n    \"@angular/router\": \"3.0.0\",\r\n    \"email-validator\": \"^1.0.7\",\r\n    \"lodash\": \"^4.16.6\",\r\n    \"nativescript-angular\": \"1.0.0\",\r\n    \"nativescript-background-http\": \"^2.4.0\",\r\n    \"nativescript-camera\": \"0.0.8\",\r\n    \"nativescript-drop-down\": \"^1.4.0\",\r\n    \"nativescript-email\": \"^1.3.3\",\r\n    \"nativescript-imagepicker\": \"^2.4.1\",\r\n    \"nativescript-iqkeyboardmanager\": \"^1.0.1\",\r\n    \"nativescript-ng2-fonticon\": \"^1.3.3\",\r\n    \"nativescript-permissions\": \"^1.2.1\",\r\n    \"nativescript-phone\": \"^1.2.3\",\r\n    \"nativescript-social-share\": \"^1.3.1\",\r\n    \"nativescript-swiss-army-knife\": \"^1.0.71\",\r\n    \"nativescript-telerik-ui-pro\": \"^1.4.1\",\r\n    \"reflect-metadata\": \"0.1.8\",\r\n    \"rxjs\": \"5.0.0-beta.12\",\r\n    \"tns-core-modules\": \"^2.4.0\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"babel-traverse\": \"6.9.0\",\r\n    \"babel-types\": \"6.9.0\",\r\n    \"babylon\": \"6.8.0\",\r\n    \"filewalker\": \"0.1.2\",\r\n    \"lazy\": \"1.0.11\",\r\n    \"nativescript-dev-typescript\": \"^0.3.2\",\r\n    \"typescript\": \"^2.0.10\",\r\n    \"zone.js\": \"0.6.21\"\r\n  }\r\n```\r\n\r\n### Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.\r\n\r\nThis is the console output\r\n\r\n```\r\n:asbg:runAstParser\r\nRunning full build\r\nfinished with reading lines with js files\r\nWarning: there already is an extend called com.tns.NativeScriptActivity.\r\nWarning: there already is an extend called com.tns.FragmentClass.\r\n:asbg:generateBindings\r\n:mergeF0F1F2F3F4F5DebugShaders\r\n:compileF0F1F2F3F4F5DebugShaders\r\n:generateF0F1F2F3F4F5DebugAssets\r\n:mergeF0F1F2F3F4F5DebugAssets\r\n:generateF0F1F2F3F4F5DebugResValues\r\n:generateF0F1F2F3F4F5DebugResources\r\n:mergeF0F1F2F3F4F5DebugResources\r\n:processF0F1F2F3F4F5DebugManifest\r\n:processF0F1F2F3F4F5DebugResources FAILED\r\n\r\nFAILURE: Build failed with an exception.\r\n\r\n* What went wrong:\r\nExecution failed for task ':processF0F1F2F3F4F5DebugResources'.\r\n> Error: more than one library with package name 'com.telerik.android.data'\r\n\r\n* Try:\r\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.\r\n\r\nBUILD FAILED\r\n\r\nTotal time: 30.926 secs\r\nCommand /Users/xyz/abc/platforms/android/gradlew failed with exit code 1\r\n```\r\n\r\nNot sure if related, but I started seeing this warning message for both ios and android\r\n\r\n\r\n```\r\nCould not find folder: /Users/xyz/abc/platforms/ios/protec/app/tns_modules/tns-core-modules\r\n```\r\n\n\n_Copied from original issue: NativeScript/NativeScript#3139_"},"comment":{"url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/comments/262909025","html_url":"https://github.com/NativeScript/nativescript-cli/issues/2258#issuecomment-262909025","issue_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/2258","id":262909025,"user":{"login":"enchev","id":5804953,"avatar_url":"https://avatars.githubusercontent.com/u/5804953?v=3","gravatar_id":"","url":"https://api.github.com/users/enchev","html_url":"https://github.com/enchev","followers_url":"https://api.github.com/users/enchev/followers","following_url":"https://api.github.com/users/enchev/following{/other_user}","gists_url":"https://api.github.com/users/enchev/gists{/gist_id}","starred_url":"https://api.github.com/users/enchev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enchev/subscriptions","organizations_url":"https://api.github.com/users/enchev/orgs","repos_url":"https://api.github.com/users/enchev/repos","events_url":"https://api.github.com/users/enchev/events{/privacy}","received_events_url":"https://api.github.com/users/enchev/received_events","type":"User","site_admin":false},"created_at":"2016-11-25T08:56:19Z","updated_at":"2016-11-25T08:56:19Z","body":"_From @tsonevn on November 22, 2016 7:41_\n\nHi @NgSculptor,\r\nTry to upgrade the dependencies in your project `package.json` file as following the below-attached code snippet. \r\n\r\n```\r\n{\r\n  \"description\": \"NativeScript Application\",\r\n  \"license\": \"SEE LICENSE IN <your-license-filename>\",\r\n  \"readme\": \"NativeScript Application\",\r\n  \"repository\": \"<fill-your-repository-here>\",\r\n  \"nativescript\": {\r\n    \"id\": \"org.nativescript.sample3139\"\r\n  },\r\n  \"dependencies\": {\r\n    \"@angular/common\": \"2.1.2\",\r\n    \"@angular/compiler\": \"2.1.2\",\r\n    \"@angular/core\": \"2.1.2\",\r\n    \"@angular/forms\": \"2.1.2\",\r\n    \"@angular/http\": \"2.1.2\",\r\n    \"@angular/platform-browser\": \"2.1.2\",\r\n    \"@angular/platform-browser-dynamic\": \"2.1.2\",\r\n    \"@angular/router\": \"3.1.2\",\r\n    \"nativescript-angular\": \"1.1.3\",\r\n    \"nativescript-theme-core\": \"^0.2.1\",\r\n    \"reflect-metadata\": \"~0.1.8\",\r\n    \"rxjs\": \"5.0.0-beta.12\",\r\n    \"tns-core-modules\": \"2.4.0\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"nativescript-dev-android-snapshot\": \"^0.*.*\",\r\n    \"nativescript-dev-typescript\": \"^0.3.2\",\r\n    \"typescript\": \"^2.0.10\",\r\n    \"zone.js\": \"~0.6.21\"\r\n  }\r\n}\r\n```\r\n\r\nDelete `node_modules`, `platforms`, `hooks` folders and clear `npm` cache `npm cache clear`. Then rebuild your project with `tns run android`. \r\n\r\nHope this helps."}}
{"actor":{"display_login":"enchev"}}