{ "id": "171102", "key": "AC-5597", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2018-02-24T21:27:40.000+0000", "created": "2018-02-13T21:48:02.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-02-24T21:27:40.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "I am trying to build with SDK 7.0.2.GA and I always see this error. In both emulator and device. iOS is fine. \r\n\r\n[ERROR] Failed to run dexer:\r\n[ERROR] \r\n[ERROR] Exception in thread \"main\" java.lang.RuntimeException: java.net.SocketException: Connection reset\r\n[ERROR] at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:78\r\n)\r\n[ERROR] at org.gradle.wrapper.Install.createDist(Install.java:47)\r\n[ERROR] at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)\r\n[ERROR] at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)\r\n[ERROR] Caused by: java.net.SocketException: Connection reset\r\n[ERROR] at java.net.SocketInputStream.read(SocketInputStream.java:210)\r\n[ERROR] at java.net.SocketInputStream.read(SocketInputStream.java:141)\r\n[ERROR] at java.io.BufferedInputStream.read1(BufferedInputStream.java:284)\r\n[ERROR] at java.io.BufferedInputStream.read(BufferedInputStream.java:345)\r\n[ERROR] at sun.net.www.MeteredStream.read(MeteredStream.java:134)\r\n[ERROR] at java.io.FilterInputStream.read(FilterInputStream.java:133)\r\n[ERROR] at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java\r\n:3375)\r\n[ERROR] at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java\r\n:3368)\r\n[ERROR] at org.gradle.wrapper.Download.downloadInternal(Download.java:63)\r\n[ERROR] at org.gradle.wrapper.Download.download(Download.java:45)\r\n[ERROR] at org.gradle.wrapper.Install$1.call(Install.java:60)\r\n[ERROR] at org.gradle.wrapper.Install$1.call(Install.java:47)\r\n[ERROR] at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65\r\n)\r\n[ERROR] ... 3 more", "attachment": [], "flagged": false, "summary": "Android: With SDK 7.0.2.GA, Build shows error in \"[ERROR] Failed to run dexer:\"", "creator": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "environment": "Android\r\nCLI 7.0.2\r\nSDK 7.0.2.GA", "comment": { "comments": [ { "id": "434444", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Are you using a proxy to access the Internet?\r\nOr behind a smart switch that blocks certain domains/URLs?", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-02-13T23:13:58.000+0000", "updated": "2018-02-13T23:13:58.000+0000" }, { "id": "434491", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "This is only happening with the latest SDK 7.0.2.GA, The previous SDK 7.0.1.GA build in Android was ok. Any change from the previous one regarding this? I am not under any proxy. But, Possibly behind a smart switch that blocks certain domains/URLs, I need to know those URL's, so we can allow them. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-02-14T20:43:14.000+0000", "updated": "2018-02-14T20:43:14.000+0000" }, { "id": "434505", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We've added \"gradle\" to the Android build process in 7.0.2 to handle multidex'ing large apps to make them work on Android 4.x devices. Before Titanium 7.0.2, odds are multidex'ed apps would crash on startup on Android 4.x.\r\n\r\nThe first time the gradle build script is ran, it'll attempt to download from the following URLs. Perhaps they're being block by the smart switch? Try clicking on them.\r\n* http://services.gradle.org/distributions/gradle-4.1-all.zip\r\n* https://repo1.maven.org/maven2/net/sf/proguard/proguard-gradle/5.3.3/proguard-gradle-5.3.3.pom\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-02-15T03:13:45.000+0000", "updated": "2018-02-15T03:13:45.000+0000" }, { "id": "434538", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "These URL's are opening fine. I can download the zip file (90.1MB?!), And the second URL opens as [this|https://ibb.co/kF0G6S]. To be clear, On the first build, all the required components should be downloaded? and after subsequent build, it should run fine? Or it's trying to connect to them every single time? If so, I will try on a different network just on the first build. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-02-15T20:27:20.000+0000", "updated": "2018-02-15T20:27:36.000+0000" }, { "id": "434540", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Gradle will only download them once and they'll be cached to the following directory on Mac...\r\n{{~/.gradle/caches}}\r\n\r\nAll subsequent builds, including builds of other apps on the same machine, will grab the cached copy from then on. Gradle will not attempt to download newer versions. We have to hard-code what versions to download in Titanium's build system, so, that's the good news.\r\n\r\nNote that if you delete the {{~/.gradle/caches}} directory, then the next build will download these dependencies again. This is only useful for build testing purposes though.\r\n\r\nSo, are you still not able to do an Android build?\r\nI'm wondering if the following URL is getting blocked, because it should show you XML in your web browser.\r\nhttps://repo1.maven.org/maven2/net/sf/proguard/proguard-gradle/5.3.3/proguard-gradle-5.3.3.pom", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-02-15T20:33:22.000+0000", "updated": "2018-02-15T20:36:05.000+0000" }, { "id": "434582", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Thanks for letting me know, I will try on a different network. I will close it. ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-02-16T20:48:14.000+0000", "updated": "2018-02-16T20:48:14.000+0000" }, { "id": "434584", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am worried that a customer might be behind a smart switch as well. So, this is a valid concern. If this is what's actually happening, then we'll have to see about improving the messaging here to reduce the tech-support issues it might cause. Thanks.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-02-16T20:59:17.000+0000", "updated": "2018-02-16T20:59:17.000+0000" }, { "id": "434843", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~jquick], I believe the issue was with the network. I change the network and seems to work fine. Although my first build did take some time before running dexer. But, it was done without issue and also the subsequent build was fine. Additionally, the other projects also run fine now. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-02-23T21:31:15.000+0000", "updated": "2018-02-23T21:31:47.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }