{ "id": "116035", "key": "TIMOB-15246", "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": "2016-08-18T22:00:28.000+0000", "created": "2013-06-16T15:43:08.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "minSdkVersion", "use-sdk" ], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-24T21:56:30.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" } ], "description": "*Steps to reproduce*\r\n1. create default app (not alloy).\r\n2. Run it in Android Emulator, It will run without issues.\r\n3. Now change tiapp.xml and add this snippet instead of default :\r\n{code:xml}\r\n\r\n \r\n \r\n \r\n\r\n{code}\r\n4. Running emulator will produce 'Unfortunately, APP has stopped.'", "attachment": [], "flagged": false, "summary": "App won't start if uses-sdk is specified", "creator": { "name": "osama", "key": "osama", "displayName": "Osama Abbas", "active": true, "timeZone": "Asia/Tokyo" }, "subtasks": [], "reporter": { "name": "osama", "key": "osama", "displayName": "Osama Abbas", "active": true, "timeZone": "Asia/Tokyo" }, "environment": "3.0.0.GA & 3.1.0.GA\r\nMac OS X & Ubuntu", "comment": { "comments": [ { "id": "258322", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "With 3.1 GA and below, and a minSdkVersion of 11 and above (10 and below works fine) throws an SDK error at build time.\r\n\r\nHowever, after I switched to 3.1.1 GA it worked. Please try with the latest SDK and Studio released today.\r\n\r\nIn no case did I get a runtime crash.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-18T00:20:30.000+0000", "updated": "2013-06-18T00:20:30.000+0000" }, { "id": "264891", "author": { "name": "lluisgerard", "key": "lluisgerard", "displayName": "Lluis Gerard", "active": true, "timeZone": "Europe/Berlin" }, "body": "I'm using 3.1.1 GA and copying this manifest here I still get the error.\n\nI think it has to do with this \"android.os.NetworkOnMainThreadException\" because Appcelerator must be accesing to the network using the main thread and in some sdk versions this is not allowed. ", "updateAuthor": { "name": "lluisgerard", "key": "lluisgerard", "displayName": "Lluis Gerard", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-08-03T12:13:31.000+0000", "updated": "2013-08-03T12:13:31.000+0000" }, { "id": "264954", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please can you provide:\n\n- The last few lines of log output where you get 'Unfortunately, APP has stopped.'\n- Your Studio log file (Help -> Studio -> Clear log file, Reproduce issue, Help -> Studio -> View log file)\n- Your diagnostic (Help -> Studio -> Run Diagnostic Test...)\n\nAnd can you clarify where you get this \"android.os.NetworkOnMainThreadException\"?\n\nThanks.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-05T18:30:26.000+0000", "updated": "2013-08-05T18:30:26.000+0000" }, { "id": "265105", "author": { "name": "lluisgerard", "key": "lluisgerard", "displayName": "Lluis Gerard", "active": true, "timeZone": "Europe/Berlin" }, "body": "Trying to paste here but get all the time:\n{noformat}\nThe JIRA server could not be contacted. This may be a temporary glitch or the server may be down.\n\nClose this dialog and press refresh in your browser\n{noformat}", "updateAuthor": { "name": "lluisgerard", "key": "lluisgerard", "displayName": "Lluis Gerard", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-08-06T14:59:50.000+0000", "updated": "2013-08-06T14:59:50.000+0000" }, { "id": "265106", "author": { "name": "lluisgerard", "key": "lluisgerard", "displayName": "Lluis Gerard", "active": true, "timeZone": "Europe/Berlin" }, "body": "\nThis only happens when I copy exactly the example here (min:11, target: 17), if I use (min:8, target 9) I get no alert and everything works ok.\n\n**The last few lines of log output where you get 'Unfortunately, APP has stopped.** (I removed the name of my app by XXXX becuase of the NDA I signed):\n\nThis is where you can see \"android.os.NetworkOnMainThreadException\" but don't know if it really has anything to do with this bug.\n\n{noformat}\nD/TiAssetHelper( 997): Fetching \"app.js\" with Fastdev...\nD/AndroidRuntime( 997): Shutting down VM\nW/dalvikvm( 997): threadid=1: thread exiting with uncaught exception (group=0x40a71930)\nE/TiApplication( 997): (main) [361,1124] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.XXXXXX.XXXXXX/com.XXXXX.XXXXXXX.XXXXXXXXXActivity}: android.os.NetworkOnMainThreadException; Titanium 3.1.1,2013/06/15 16:10,f7592c1\nE/TiApplication( 997): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.XXXXX.XXXXXXX/com.XXXXX.XXXXXXX.XXXXXXXXXActivity}: android.os.NetworkOnMainThreadException\nE/TiApplication( 997): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)\nE/TiApplication( 997): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)\nE/TiApplication( 997): at android.app.ActivityThread.access$600(ActivityThread.java:141)\nE/TiApplication( 997): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)\nE/TiApplication( 997): at android.os.Handler.dispatchMessage(Handler.java:99)\nE/TiApplication( 997): at android.os.Looper.loop(Looper.java:137)\nE/TiApplication( 997): at android.app.ActivityThread.main(ActivityThread.java:5041)\nE/TiApplication( 997): at java.lang.reflect.Method.invokeNative(Native Method)\nE/TiApplication( 997): at java.lang.reflect.Method.invoke(Method.java:511)\nE/TiApplication( 997): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)\nE/TiApplication( 997): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)\nE/TiApplication( 997): at dalvik.system.NativeStart.main(Native Method)\nE/TiApplication( 997): Caused by: android.os.NetworkOnMainThreadException\nE/TiApplication( 997): at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1117)\nE/TiApplication( 997): at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:163)\nE/TiApplication( 997): at libcore.io.IoBridge.recvfrom(IoBridge.java:513)\nE/TiApplication( 997): at java.net.PlainSocketImpl.read(PlainSocketImpl.java:488)\nE/TiApplication( 997): at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46)\nE/TiApplication( 997): at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:240)\nE/TiApplication( 997): at org.appcelerator.kroll.common.TiFastDev$Session.blockRead(TiFastDev.java:310)\nE/TiApplication( 997): at org.appcelerator.kroll.common.TiFastDev$Session.readInt(TiFastDev.java:349)\nE/TiApplication( 997): at org.appcelerator.kroll.common.TiFastDev$Session.readTokenCount(TiFastDev.java:412)\nE/TiApplication( 997): at org.appcelerator.kroll.common.TiFastDev.openInputStream(TiFastDev.java:214)\nE/TiApplication( 997): at org.appcelerator.kroll.util.KrollAssetHelper.readAsset(KrollAssetHelper.java:53)\nE/TiApplication( 997): at org.appcelerator.titanium.TiLaunchActivity.loadActivityScript(TiLaunchActivity.java:103)\nE/TiApplication( 997): at org.appcelerator.titanium.TiLaunchActivity.windowCreated(TiLaunchActivity.java:151)\nE/TiApplication( 997): at org.appcelerator.titanium.TiRootActivity.windowCreated(TiRootActivity.java:109)\nE/TiApplication( 997): at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:527)\nE/TiApplication( 997): at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:144)\nE/TiApplication( 997): at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:97)\nE/TiApplication( 997): at android.app.Activity.performCreate(Activity.java:5104)\nE/TiApplication( 997): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)\nE/TiApplication( 997): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)\nE/TiApplication( 997): ... 11 more\nD/dalvikvm( 997): GC_CONCURRENT freed 396K, 15% free 3246K/3776K, paused 6ms+38ms, total 149ms\nE/AndroidRuntime( 997): FATAL EXCEPTION: main\nE/AndroidRuntime( 997): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.XXXXX.XXXXXXX/com.XXXXX.XXXXXXXActivity}: android.os.NetworkOnMainThreadException\nE/AndroidRuntime( 997): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)\nE/AndroidRuntime( 997): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)\nE/AndroidRuntime( 997): at android.app.ActivityThread.access$600(ActivityThread.java:141)\nE/AndroidRuntime( 997): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)\nE/AndroidRuntime( 997): at android.os.Handler.dispatchMessage(Handler.java:99)\nE/AndroidRuntime( 997): at android.os.Looper.loop(Looper.java:137)\nE/AndroidRuntime( 997): at android.app.ActivityThread.main(ActivityThread.java:5041)\nE/AndroidRuntime( 997): at java.lang.reflect.Method.invokeNative(Native Method)\nE/AndroidRuntime( 997): at java.lang.reflect.Method.invoke(Method.java:511)\nE/AndroidRuntime( 997): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)\nE/AndroidRuntime( 997): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)\nE/AndroidRuntime( 997): at dalvik.system.NativeStart.main(Native Method)\nE/AndroidRuntime( 997): Caused by: android.os.NetworkOnMainThreadException\nE/AndroidRuntime( 997): at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1117)\nE/AndroidRuntime( 997): at libcore.io.BlockGuardOs.recvfrom(BlockGuardOs.java:163)\nE/AndroidRuntime( 997): at libcore.io.IoBridge.recvfrom(IoBridge.java:513)\nE/AndroidRuntime( 997): at java.net.PlainSocketImpl.read(PlainSocketImpl.java:488)\nE/AndroidRuntime( 997): at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:46)\nE/AndroidRuntime( 997): at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:240)\nE/AndroidRuntime( 997): at org.appcelerator.kroll.common.TiFastDev$Session.blockRead(TiFastDev.java:310)\nE/AndroidRuntime( 997): at org.appcelerator.kroll.common.TiFastDev$Session.readInt(TiFastDev.java:349)\nE/AndroidRuntime( 997): at org.appcelerator.kroll.common.TiFastDev$Session.readTokenCount(TiFastDev.java:412)\nE/AndroidRuntime( 997): at org.appcelerator.kroll.common.TiFastDev.openInputStream(TiFastDev.java:214)\nE/AndroidRuntime( 997): at org.appcelerator.kroll.util.KrollAssetHelper.readAsset(KrollAssetHelper.java:53)\nE/AndroidRuntime( 997): at org.appcelerator.titanium.TiLaunchActivity.loadActivityScript(TiLaunchActivity.java:103)\nE/AndroidRuntime( 997): at org.appcelerator.titanium.TiLaunchActivity.windowCreated(TiLaunchActivity.java:151)\nE/AndroidRuntime( 997): at org.appcelerator.titanium.TiRootActivity.windowCreated(TiRootActivity.java:109)\nE/AndroidRuntime( 997): at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:527)\nE/AndroidRuntime( 997): at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:144)\nE/AndroidRuntime( 997): at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:97)\nE/AndroidRuntime( 997): at android.app.Activity.performCreate(Activity.java:5104)\nE/AndroidRuntime( 997): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)\nE/AndroidRuntime( 997): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)\nE/AndroidRuntime( 997): ... 11 more\n{noformat}\n", "updateAuthor": { "name": "lluisgerard", "key": "lluisgerard", "displayName": "Lluis Gerard", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-08-06T15:00:19.000+0000", "updated": "2013-08-06T15:00:19.000+0000" }, { "id": "265109", "author": { "name": "lluisgerard", "key": "lluisgerard", "displayName": "Lluis Gerard", "active": true, "timeZone": "Europe/Berlin" }, "body": "**Your Studio log file (Help -> Studio -> Clear log file, Reproduce issue, Help -> Studio -> View log file):**\nWhen I do this, I only get a blank log file :O\n\n**Your diagnostic (Help -> Studio -> Run Diagnostic Test...)**\nI tried different ways to paste it here and I always get a JIRA Server error.\n\n{noformat}\n\nHost OS: Mac OS X\nOS Version: 10.8.4\nOS Arch: x86\n\nJRE Version: 1.6.0_51\nJRE Vendor: Apple Inc.\nJRE Home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home\n\nTitanium Studio Version: 3.1.1.201306112235\nInstall Directory: file:/Applications/Titanium Studio/\nWorkspace Directory: file:/Users/lluisgerard/Titanium/\nVM Arguments: -Xms40m\n-Xmx1024m\n-Declipse.p2.unsignedPolicy=allow\n-Declipse.log.size.max=10000\n-Declipse.log.backup.max=5\n-Xdock:icon=../Resources/titanium.icns\n-XstartOnFirstThread\n-Dorg.eclipse.swt.internal.carbon.smallFonts\n-XX:MaxPermSize=256m\n-Djava.class.path=/Applications/Titanium Studio/TitaniumStudio.app/Contents/MacOS//../../../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar\n\nLanguage: en_US\n{noformat}", "updateAuthor": { "name": "lluisgerard", "key": "lluisgerard", "displayName": "Lluis Gerard", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-08-06T15:02:28.000+0000", "updated": "2013-08-06T15:02:28.000+0000" }, { "id": "265110", "author": { "name": "lluisgerard", "key": "lluisgerard", "displayName": "Lluis Gerard", "active": true, "timeZone": "Europe/Berlin" }, "body": "Adding false doesn't make a difference... but maybe this is network related and not that the App just doesn't start.", "updateAuthor": { "name": "lluisgerard", "key": "lluisgerard", "displayName": "Lluis Gerard", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-08-06T15:12:55.000+0000", "updated": "2013-08-06T15:12:55.000+0000" }, { "id": "393543", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Unable to reproduce using Titanium SDK 6.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-08-18T22:00:28.000+0000", "updated": "2016-08-18T22:00:28.000+0000" }, { "id": "415803", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue cannot be reproduced.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T21:56:30.000+0000", "updated": "2017-03-24T21:56:30.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }