Upgrading from 1.7.5 to 2.1.3 with Android problems. iOS fine. And losing my hair.

You must Login before you can answer or comment on any questions.

Hi Community,

I've been away from Ti for several months working on another product (not mobile). I'm back to update our app (crashing on jellybean, support for iPhone5, etc).

For iOS, I went from 1.7.5 to 1.8.2 to 2.1.3 with zero issues. Hooray!

If only Android could be that nice to me. I updated the platform/tools to the latest and even got the newest Google/SDK APIs (ver16).

When that didn't work, I tried to launch a new project built with the Master/Detail View template. When that crashed, I decided to reach out to you guys...

I'm on Mac OSX (Snow Leopard) with python 2.6. I have Studio 2.1.2.201208301612.

Here's the error output with the full output here: http://pastebin.com/XniAJtT9

** Any help is appreciated. I've been trying different things for the past 15 hours with no luck :/

[ERROR][TiApplication(  327)] (KrollRuntimeThread) [2812,2812] APP PROXY: ti.modules.titanium.app.AppModule@44efafb8
[WARN][V8Object(  327)] Runtime disposed, cannot set property 'userAgent'
[WARN][dalvikvm(  327)] threadid=1: thread exiting with uncaught exception (group=0x4001d800)
[ERROR][TiApplication(  327)] (main) [369,3181] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.test/com.example.test.NewTestActivity}: java.lang.NullPointerException; Titanium 2.1.3,2012/10/02 16:16,15997d0
[ERROR][TiApplication(  327)] java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.test/com.example.test.NewTestActivity}: java.lang.NullPointerException
[ERROR][TiApplication(  327)]   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
[ERROR][TiApplication(  327)]   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
[ERROR][TiApplication(  327)]   at android.app.ActivityThread.access$2300(ActivityThread.java:125)
[ERROR][TiApplication(  327)]   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
[ERROR][TiApplication(  327)]   at android.os.Handler.dispatchMessage(Handler.java:99)
[ERROR][TiApplication(  327)]   at android.os.Looper.loop(Looper.java:123)
[ERROR][TiApplication(  327)]   at android.app.ActivityThread.main(ActivityThread.java:4627)
[ERROR][TiApplication(  327)]   at java.lang.reflect.Method.invokeNative(Native Method)
[ERROR][TiApplication(  327)]   at java.lang.reflect.Method.invoke(Method.java:521)
[ERROR][TiApplication(  327)]   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
[ERROR][TiApplication(  327)]   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
[ERROR][TiApplication(  327)]   at dalvik.system.NativeStart.main(Native Method)
[ERROR][TiApplication(  327)] Caused by: java.lang.NullPointerException
[ERROR][TiApplication(  327)]   at org.appcelerator.kroll.util.KrollAssetHelper.readAsset(KrollAssetHelper.java:55)
[ERROR][TiApplication(  327)]   at org.appcelerator.titanium.TiLaunchActivity.loadActivityScript(TiLaunchActivity.java:108)
[ERROR][TiApplication(  327)]   at org.appcelerator.titanium.TiLaunchActivity.windowCreated(TiLaunchActivity.java:158)
[ERROR][TiApplication(  327)]   at org.appcelerator.titanium.TiRootActivity.windowCreated(TiRootActivity.java:111)
[ERROR][TiApplication(  327)]   at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:445)
[ERROR][TiApplication(  327)]   at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:151)
[ERROR][TiApplication(  327)]   at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:99)
[ERROR][TiApplication(  327)]   at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
[ERROR][TiApplication(  327)]   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
[ERROR][TiApplication(  327)]   ... 11 more

— asked 7 months ago by John Brennan
1 Comment
  • was solved the next day. i did nothing. must be some bug in Studio or something that got worked out. very weird...

    — commented 7 months ago by John Brennan

Your Answer

Think you can help? Login to answer this question!