{ "id": "63160", "key": "TIMOB-2528", "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": [ { "id": "11230", "name": "Release 1.5.0 M05", "archived": true, "released": true, "releaseDate": "2010-12-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:59:21.000+0000", "created": "2011-04-15T03:21:59.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect" ], "versions": [], "issuelinks": [], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2011-04-17T01:59:21.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": "{html}

It appears to be related to compiled javascript. Note: I do\nnot have the compiling option turned on in\ntiapp.xml.

\n
\nE/ROOT    (10952): (main) [14,120] Leaving TiRootActivity.onCreate\nI/Log     (10952): (main) [0,0] checkpoint, on root activity resume. context = org.appcelerator.titanium.TiContext@46384210\nI/TiRootActivity(10952): (Thread-9) [2,2] eval app.js\nD/KrollContext(10952): (kroll$1) [3,5] Running pre-compiled script: app.js\nE/KrollContext(10952): (kroll$1) [0,5] Couldn't find pre-compiled class for script: app.js\nE/KrollContext(10952): java.lang.ClassNotFoundException: com.billdawson.basictabs.js.app\nE/KrollContext(10952):  at java.lang.Class.classForName(Native Method)\nE/KrollContext(10952):  at java.lang.Class.forName(Class.java:235)\nE/KrollContext(10952):  at java.lang.Class.forName(Class.java:182)\nE/KrollContext(10952):  at org.appcelerator.titanium.TiScriptRunner.runScript(TiScriptRunner.java:83)\nE/KrollContext(10952):  at org.appcelerator.titanium.kroll.KrollContext.runCompiledScript(KrollContext.java:177)\nE/KrollContext(10952):  at org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:218)\nE/KrollContext(10952):  at org.appcelerator.titanium.kroll.KrollContext.handleMessage(KrollContext.java:115)\nE/KrollContext(10952):  at android.os.Handler.dispatchMessage(Handler.java:95)\nE/KrollContext(10952):  at android.os.Looper.loop(Looper.java:144)\nE/KrollContext(10952):  at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:73)\nE/KrollContext(10952): Caused by: java.lang.NoClassDefFoundError: com.billdawson.basictabs.js.app\nE/KrollContext(10952):  ... 10 more\nE/KrollContext(10952): Caused by: java.lang.ClassNotFoundException: com.billdawson.basictabs.js.app in loader dalvik.system.PathClassLoader[/data/app/com.billdawson.basictabs-1.apk]\nE/KrollContext(10952):  at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)\nE/KrollContext(10952):  at java.lang.ClassLoader.loadClass(ClassLoader.java:573)\nE/KrollContext(10952):  at java.lang.ClassLoader.loadClass(ClassLoader.java:532)\nE/KrollContext(10952):  ... 10 more\n
{html}", "attachment": [], "flagged": false, "summary": "Android: Apps created with 'Distribute' under 1.5. do not work", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "128699", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [6f3fd7fc2b8c78ff44145465ec26f80303129cf5])\nset the ti.deploytype property internally when setDeployType is\ncalled in tiapp.py [#2528 state:fixed-in-qa]
\n\nhttps://github.com/appcelerator/titanium_mobile/commit/6f3fd7fc2b8c...

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:21:59.000+0000", "updated": "2011-04-15T03:21:59.000+0000" }, { "id": "128700", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Hope this is not user error, I walked through the guide for\npackaging and it resulted in a crash on launch with the following\nerror:

\n

W/dalvikvm( 3970): threadid=1: thread exiting with uncaught\nexception (group=0x4001d7e0)
\nE/AndroidRuntime( 3970): FATAL EXCEPTION: main
\nE/AndroidRuntime( 3970): java.lang.RuntimeException: Unable to\ninstantiate application\ncom.appcelerator.package.PackageApplication:\njava.lang.ClassNotFoundException:\ncom.appcelerator.package.PackageApplication in loader\ndalvik.system.PathClassLoader[/data/app/com.appcelerator.package-1.apk]
\nE/AndroidRuntime( 3970): at\nandroid.app.ActivityThread$PackageInfo.makeApplication(ActivityThread.java:649)
\nE/AndroidRuntime( 3970): at\nandroid.app.ActivityThread.handleBindApplication(ActivityThread.java:4232)
\nE/AndroidRuntime( 3970): at\nandroid.app.ActivityThread.access$3000(ActivityThread.java:125)
\nE/AndroidRuntime( 3970): at\nandroid.app.ActivityThread$H.handleMessage(ActivityThread.java:2071)
\nE/AndroidRuntime( 3970): at\nandroid.os.Handler.dispatchMessage(Handler.java:99)
\nE/AndroidRuntime( 3970): at\nandroid.os.Looper.loop(Looper.java:123)
\nE/AndroidRuntime( 3970): at\nandroid.app.ActivityThread.main(ActivityThread.java:4627)
\nE/AndroidRuntime( 3970): at\njava.lang.reflect.Method.invokeNative(Native Method)
\nE/AndroidRuntime( 3970): at\njava.lang.reflect.Method.invoke(Method.java:521)
\nE/AndroidRuntime( 3970): at\ncom.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
\nE/AndroidRuntime( 3970): at\ncom.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
\nE/AndroidRuntime( 3970): at dalvik.system.NativeStart.main(Native\nMethod)
\nE/AndroidRuntime( 3970): Caused by:\njava.lang.ClassNotFoundException:\ncom.appcelerator.package.PackageApplication in loader\ndalvik.system.PathClassLoader[/data/app/com.appcelerator.package-1.apk]
\nE/AndroidRuntime( 3970): at\ndalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
\nE/AndroidRuntime( 3970): at\njava.lang.ClassLoader.loadClass(ClassLoader.java:573)
\nE/AndroidRuntime( 3970): at\njava.lang.ClassLoader.loadClass(ClassLoader.java:532)
\nE/AndroidRuntime( 3970): at\nandroid.app.Instrumentation.newApplication(Instrumentation.java:942)
\nE/AndroidRuntime( 3970): at\nandroid.app.ActivityThread$PackageInfo.makeApplication(ActivityThread.java:644)
\nE/AndroidRuntime( 3970): ... 11 more
\nW/ActivityManager( 1297): Force finishing activity\ncom.appcelerator.package/.PackageActivity

\n

attaching key.store and APK file. pasword is \"tester\"

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:22:00.000+0000", "updated": "2011-04-15T03:22:00.000+0000" }, { "id": "128701", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

weird, attachments are failing silently, will email files to\nMarshal

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:22:00.000+0000", "updated": "2011-04-15T03:22:00.000+0000" }, { "id": "128702", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Hey Thomas. The original failure was about the JS class not\nbeing found, but your error looks like the generated Application\nclass can't be found, which is odd. Were there any errors during\nthe app build process that you saw? Can you check to see if\nbuild/android/bin/com/appcelerator/package/PackageApplication.class\nexists?

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:22:00.000+0000", "updated": "2011-04-15T03:22:00.000+0000" }, { "id": "128703", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

note to self - don't use the name \"package\".

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:22:01.000+0000", "updated": "2011-04-15T03:22:01.000+0000" }, { "id": "128704", "author": { "name": "jj", "key": "jj", "displayName": "jj", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I'm getting the \"Couldn't find pre-compiled class for script\" in\n1.5.1 and 1.5.2. How to resolve it?

{html}", "updateAuthor": { "name": "jj", "key": "jj", "displayName": "jj", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:22:01.000+0000", "updated": "2011-04-15T03:22:01.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }