{ "id": "124219", "key": "TIMOB-16131", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2014-01-07T00:39:59.000+0000", "created": "2013-12-27T07:57:47.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android" ], "versions": [], "issuelinks": [ { "id": "34128", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "124172", "key": "TIMOB-16086", "fields": { "summary": "Android: Application hangs on splash screen after terminating debugging from studio", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "34129", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "112990", "key": "TIMOB-15306", "fields": { "summary": "TiStudio: Application hangs on splash screen when going from the Debug \"Titanium Android on Device\" build of the app to the \"Titanium App Store Distribution\" build of the app.", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-21T21:55:38.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" }, { "id": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "See Q&A at http://developer.appcelerator.com/question/160742/cant-run-app-on-android-device-but-debug-works#comment-197873.\r\n\r\nWhen I build for an android device using the \"Run\" option, the app freezes on startup with the background showing.\r\n\r\nIf I build with Debug, it works fine. While this might be considered a workaround, it causes time delays when testing as the debug mode is exited every time the app is closed.\r\n\r\nEnvironment:\r\n- Ti Studio 3.2 with sdk 3.2.0GA\r\n- OSX Maverich\r\n- Android 4.1.2\r\n- LG Optimus L9", "attachment": [ { "id": "44835", "filename": "Ti.build.log", "author": { "name": "marten", "key": "marten", "displayName": "Marten Nelson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-27T07:57:47.000+0000", "size": 141739, "mimeType": "text/plain" } ], "flagged": false, "summary": "Can't launch app on android device with Run option", "creator": { "name": "marten", "key": "marten", "displayName": "Marten Nelson", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "marten", "key": "marten", "displayName": "Marten Nelson", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "android", "comment": { "comments": [ { "id": "286414", "author": { "name": "marten", "key": "marten", "displayName": "Marten Nelson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "There are more people experiencing the same issue - http://developer.appcelerator.com/question/160742/cant-run-app-on-android-device-but-debug-works#answer-273280", "updateAuthor": { "name": "marten", "key": "marten", "displayName": "Marten Nelson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-01T17:41:29.000+0000", "updated": "2014-01-01T17:41:29.000+0000" }, { "id": "286829", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I'm trying to reproduce this using a fresh install of Mac OS X Mavericks with a Samsung Galaxy Nexus with Android 4.0 and a Nexus 7 with Android 4.3. Both work just fine for device builds.\n\nI'm going to install Titanium Studio 3.2 and do a few debug/non-debug builds and see if I can reproduce the problem.\n\nIt really sounds like the problem is that the deploy.json is not removed from the device's SD card. Could you try manually removing it?\n\n1. Connect device\n2. Run \"adb shell\" from command line\n3. Run \"cd /sdcard\"\n4. Run \"ls\"\n5. Locate a directory with your app's id\n6. Run \"cd \"\n7. Run \"ls\"\n8. If a \"deploy.json\" file exists, delete it by running \"rm deploy.json\". If it does not exist, then the app should launch just fine.\n\nCan you verify that the deploy.json file does not exist, yet the app still won't launch?", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-01-06T22:55:03.000+0000", "updated": "2014-01-06T22:55:03.000+0000" }, { "id": "286830", "author": { "name": "marten", "key": "marten", "displayName": "Marten Nelson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Right on! That solved it. deploy.json was present. I removed it and launched using the \"Run\" option and it works.", "updateAuthor": { "name": "marten", "key": "marten", "displayName": "Marten Nelson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-06T23:11:24.000+0000", "updated": "2014-01-06T23:11:24.000+0000" }, { "id": "286831", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "No way. Crazy. When doing a non-debug build, the build process should remove that file. You can even see it in the log output:\r\n\r\n{code}\r\n[INFO] : Removing deploy.json from SD card\r\n{code}\r\n\r\nThe build script is running the following shell command:\r\n\r\n{code}\r\nlogger.info(__('Removing %s from SD card', 'deploy.json'.cyan));\r\nadb.shell(device.id, '[ -f \"/sdcard/' + builder.appid + '/deploy.json\" ] && rm -f \"/sdcard/' + builder.appid + '/deploy.json\"\\necho \"DONE\"', cb);\r\n{code}\r\n\r\nYour app id is sane, so it essentially is running:\r\n\r\n{code}\r\n[ -f \"/sdcard/com.edtuit.geoperks/deploy.json\" ] && rm -f \"/sdcard/com.edtuit.geoperks/deploy.json\"\r\necho \"DONE\"\r\n{code}\r\n\r\nFor some reason the \\-f file exists check is failing \\-OR\\- the \"rm\" is failing, but I would put my money on the file exists check. Maybe I should expand this into a full \"if\" block.\r\n\r\nIn any case, I'm glad it's working now. If you do another debug build, it will add that deploy.json file back. Hopefully in future Titanium versions, we will remove this dependency.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-01-06T23:21:28.000+0000", "updated": "2014-01-06T23:21:57.000+0000" }, { "id": "286853", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I'm resolving this issue, but have opened TIMOB-16132 to remove the deploy.json to prevent these sort of issues in the future.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-01-07T00:39:59.000+0000", "updated": "2014-01-07T00:39:59.000+0000" }, { "id": "301725", "author": { "name": "adeel_javed", "key": "adeel_javed", "displayName": "Adeel Javed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have facing this issue from last 1 week on android device.\r\nBut here it is mention that this not reproduce.\r\n\r\nThe Scenario is same as mention in the ticket's description.\r\nEnvironment:\r\n Ti Studio 3.2.1 with sdk 3.2.0GA or latest.\r\n OSX 10.8.4\r\n Galaxy Nexus.\r\n\r\nCan anyone help me out with this issue.", "updateAuthor": { "name": "adeel_javed", "key": "adeel_javed", "displayName": "Adeel Javed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-21T10:45:47.000+0000", "updated": "2014-04-21T10:45:47.000+0000" }, { "id": "301929", "author": { "name": "lcapra", "key": "lcapra", "displayName": "luca capra", "active": true, "timeZone": "Europe/Rome" }, "body": "This happened to me too, suggestion above works.\r\n\r\n```\r\nadb shell \r\nrm sdcard//deploy.json\r\n```\r\n\r\nubuntu 13.10 64\r\nsdk 3.2.2.GA\r\nsamsung s3 4.1.2\r\n", "updateAuthor": { "name": "lcapra", "key": "lcapra", "displayName": "luca capra", "active": true, "timeZone": "Europe/Rome" }, "created": "2014-04-21T19:02:07.000+0000", "updated": "2014-04-21T19:02:07.000+0000" }, { "id": "303593", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "FYI, in Titanium SDK 3.3.0, we no longer store the deploy.json on the sd card. We store it in the APK file, so you cannot accidentally run into a situation where you are testing a non-debug build with a debug deploy.json.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-05-06T01:34:58.000+0000", "updated": "2014-05-06T01:34:58.000+0000" }, { "id": "414504", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced and due to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T21:55:38.000+0000", "updated": "2017-03-21T21:55:38.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }