{"action":"closed","issue":{"url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/3293","repository_url":"https://api.github.com/repos/NativeScript/nativescript-cli","labels_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/3293/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/3293/comments","events_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/3293/events","html_url":"https://github.com/NativeScript/nativescript-cli/issues/3293","id":284948773,"number":3293,"title":"Gradle compiling errros after updating to {N} 3.4.0","user":{"login":"victorevox","id":17477657,"avatar_url":"https://avatars3.githubusercontent.com/u/17477657?v=4","gravatar_id":"","url":"https://api.github.com/users/victorevox","html_url":"https://github.com/victorevox","followers_url":"https://api.github.com/users/victorevox/followers","following_url":"https://api.github.com/users/victorevox/following{/other_user}","gists_url":"https://api.github.com/users/victorevox/gists{/gist_id}","starred_url":"https://api.github.com/users/victorevox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorevox/subscriptions","organizations_url":"https://api.github.com/users/victorevox/orgs","repos_url":"https://api.github.com/users/victorevox/repos","events_url":"https://api.github.com/users/victorevox/events{/privacy}","received_events_url":"https://api.github.com/users/victorevox/received_events","type":"User","site_admin":false},"labels":[{"id":382157029,"url":"https://api.github.com/repos/NativeScript/nativescript-cli/labels/Android","name":"Android","color":"006b75","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-12-28T16:35:47Z","updated_at":"2017-12-29T13:59:00Z","closed_at":"2017-12-29T13:59:00Z","author_association":"NONE","body":"### Did you verify this is a real problem by searching [Stack Overflow](http://stackoverflow.com/questions/tagged/nativescript) and the [other open issues in this repo](https://github.com/NativeScript/nativescript/issues)?\r\nYes\r\n\r\n### Tell us about the problem\r\nNativescript 3.4.0 Errror\r\n\r\nAfter upgrading my application to tns 3.4.0, I'm not able to compile my android application, I have the following error:\r\n\r\n```\r\nCould not compile build file '/home/victor/Documentos/project-folder/platforms/android/build.gradle'.\r\n> startup failed:\r\n  build file '/home/victor/Documentos/project-folder/platforms/android/build.gradle': 11: expecting anything but ''\\n''; got it anyway @ line 11, column 51.\r\n     roid.tools.build:gradle:2.3.3'\r\n                                   ^\r\n  \r\n  1 error\r\n```\r\n\r\nThe error seeems to be a corrupt gradle file, where for some reason the nativescritp cli its building the .gradle with a bad characther ( \" ' \" ) instead of ( \" \" \"), so I've fixed manually this by modifying the build.gradle file:\r\n```\r\n\tclasspath \"com.android.tools.build:gradle:2.3.3' => classpath \"com.android.tools.build:gradle:2.3.3\"\r\n```\r\n\r\nAfter trying to re-run ```tns run android``` a new error appears:\r\n\r\n```\r\nA problem occurred configuring root project 'app'.\r\nConfiguration with name 'compile' not found.\r\n```\r\n\r\nUnfortunately I'm not able to get rid of that error manually, so I'm attaching a logcat, hopefully someone can help me with this.\r\nHere is a **logcat** with more detailed information [https://drive.google.com/file/d/1to7q7vPf9fWqWqPPv9t4MeGh03GayK3q/view?usp=sharing](url)\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- CLI: 3.4.0\r\n- Cross-platform modules: ^3.4.0\r\n- Runtime(s): `\"tns-android\": 3.4.0`\r\n- Plugin(s): (look for the version number in the `package.json` file of your\r\nproject)\r\n\r\n### Please tell us how to recreate the issue in as much detail as possible.\r\nUpdate project to 3.4.0\r\nJust by running `tns run android` it will fail on gradle compile\r\nAlso I've tried by deleting hooks, platforms and node_modules folder, but still have the same issue\r\n\r\n### Is there code involved?\r\nNo changes made to the project, just run `tns update` and `npm i -g nativescript`\r\n\r\n**My running environment is:**\r\nFedora release 26 (Twenty Six)\r\nNAME=Fedora\r\nVERSION=\"26 (Twenty Six)\"\r\nID=fedora\r\nVERSION_ID=26\r\nPRETTY_NAME=\"Fedora 26 (Twenty Six)\"\r\nANSI_COLOR=\"0;34\"\r\nCPE_NAME=\"cpe:/o:fedoraproject:fedora:26\"\r\nHOME_URL=\"https://fedoraproject.org/\"\r\nBUG_REPORT_URL=\"https://bugzilla.redhat.com/\"\r\nREDHAT_BUGZILLA_PRODUCT=\"Fedora\"\r\nREDHAT_BUGZILLA_PRODUCT_VERSION=26\r\nREDHAT_SUPPORT_PRODUCT=\"Fedora\"\r\nREDHAT_SUPPORT_PRODUCT_VERSION=26\r\nPRIVACY_POLICY_URL=https://fedoraproject.org/wiki/Legal:PrivacyPolicy\r\nFedora release 26 (Twenty Six)\r\n\r\n\r\n**My package json**\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\": \"com.geekbears.app\",\r\n    \"tns-android\": {\r\n      \"version\": \"3.4.0\"\r\n    },\r\n    \"tns-ios\": {\r\n      \"version\": \"3.3.0\"\r\n    }\r\n  },\r\n  \"dependencies\": {\r\n    \"@angular/animations\": \"4.4.1\",\r\n    \"@angular/common\": \"4.4.1\",\r\n    \"@angular/compiler\": \"4.4.1\",\r\n    \"@angular/core\": \"4.4.1\",\r\n    \"@angular/forms\": \"4.4.1\",\r\n    \"@angular/http\": \"4.4.1\",\r\n    \"@angular/platform-browser\": \"4.4.1\",\r\n    \"@angular/platform-browser-dynamic\": \"4.4.1\",\r\n    \"@angular/router\": \"4.4.1\",\r\n    \"@types/base-64\": \"^0.1.2\",\r\n    \"@types/moment\": \"^2.13.0\",\r\n    \"@types/utf8\": \"^2.1.5\",\r\n    \"base-64\": \"^0.1.0\",\r\n    \"moment\": \"^2.18.1\",\r\n    \"nativescript-angular\": \"4.4.1\",\r\n    \"nativescript-angular-snapshot\": \"3.0.0-5.5.372.32\",\r\n    \"nativescript-geolocation\": \"^4.2.0\",\r\n    \"nativescript-google-maps-sdk\": \"^2.4.3\",\r\n    \"nativescript-google-maps-utils\": \"^0.1.3\",\r\n    \"nativescript-google-places\": \"0.0.3\",\r\n    \"nativescript-keyboardshowing\": \"^1.0.0\",\r\n    \"nativescript-loading-indicator\": \"^2.4.0\",\r\n    \"nativescript-ngx-fonticon\": \"^2.2.3\",\r\n    \"nativescript-ngx-slides\": \"0.4.3\",\r\n    \"nativescript-phone\": \"^1.3.1\",\r\n    \"nativescript-pro-ui\": \"^3.2.0\",\r\n    \"nativescript-pulltorefresh\": \"^2.0.2\",\r\n    \"nativescript-push-notifications\": \"^0.1.5\",\r\n    \"nativescript-social-login\": \"^1.8.2\",\r\n    \"nativescript-social-share\": \"^1.3.2\",\r\n    \"nativescript-theme-core\": \"~1.0.4\",\r\n    \"nativescript-toast\": \"^1.4.6\",\r\n    \"reflect-metadata\": \"~0.1.8\",\r\n    \"rxjs\": \"~5.2.0\",\r\n    \"tns-core-modules\": \"^3.4.0\",\r\n    \"utf8\": \"^2.1.2\",\r\n    \"zone.js\": \"~0.8.14\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"@angular/compiler-cli\": \"4.4.1\",\r\n    \"@ngtools/webpack\": \"1.5.3\",\r\n    \"babel-traverse\": \"6.24.1\",\r\n    \"babel-types\": \"6.24.1\",\r\n    \"babylon\": \"6.17.1\",\r\n    \"copy-webpack-plugin\": \"~4.0.1\",\r\n    \"enhanced-resolve\": \"^3.3.0\",\r\n    \"extract-text-webpack-plugin\": \"~3.0.0\",\r\n    \"lazy\": \"1.0.11\",\r\n    \"nativescript-css-loader\": \"~0.26.0\",\r\n    \"nativescript-custom-entitlements\": \"^0.2.0\",\r\n    \"nativescript-dev-android-snapshot\": \"0.0.10\",\r\n    \"nativescript-dev-typescript\": \"^0.4.0\",\r\n    \"nativescript-dev-webpack\": \"^0.8.0\",\r\n    \"nativescript-worker-loader\": \"~0.8.1\",\r\n    \"raw-loader\": \"~0.5.1\",\r\n    \"resolve-url-loader\": \"~2.1.0\",\r\n    \"tns-platform-declarations\": \"^3.1.1\",\r\n    \"typescript\": \"~2.2.1\",\r\n    \"webpack\": \"~3.2.0\",\r\n    \"webpack-bundle-analyzer\": \"^2.8.2\",\r\n    \"webpack-sources\": \"~1.0.1\"\r\n  },\r\n  \"scripts\": {\r\n    \"ngc\": \"ngc\",\r\n    \"fix-ng\": \"npm run ngc -- -p tsconfig.aot.json\",\r\n    \"ns-bundle\": \"ns-bundle\",\r\n    \"publish-ios-bundle\": \"npm run ns-bundle --ios --publish-app\",\r\n    \"generate-android-snapshot\": \"generate-android-snapshot --targetArchs arm,arm64,ia32 --install\",\r\n    \"delete-a\": \"find . -name '*.ngfactory.*' -exec rm -r {} \\\\;\",\r\n    \"delete-b\": \"find . -name '*.ngsummary.*' -exec rm -r {} \\\\;\",\r\n    \"delete-c\": \"find . -name '*.shim.ngstyle.*' -exec rm -r {} \\\\;\",\r\n    \"do-cleanup\": \"npm run delete-a && npm run delete-b && npm run delete-c\",\r\n    \"start-android-bundle\": \"npm run ns-bundle --android --run-app\",\r\n    \"start-ios-bundle\": \"npm run ns-bundle --ios --run-app\",\r\n    \"build-android-bundle\": \"npm run ns-bundle --android --build-app\",\r\n    \"build-ios-bundle\": \"npm run ns-bundle --ios --build-app\"\r\n  }\r\n}\r\n\r\n```"}}
{"actor":{"display_login":"NickIliev"}}