java.lang.NoSuchMethodError: android.app.Activity.startActivity

Appcelerator JIRA | Andrey Tkachenko | 10 months ago
  1. 0

    Can't run application on device *Lenovo A630 Android 4.0.4* due error: {code} [ERROR] : TiApplication: (main) [1225,4779] Sending event: exception on thread: main msg:java.lang.NoSuchMethodError: android.app.Activity.startActivity; Titanium 5.2.0,2016/02/20 08:05,384775e [ERROR] : TiApplication: java.lang.NoSuchMethodError: android.app.Activity.startActivity [ERROR] : TiApplication: at ti.modules.titanium.ui.WindowProxy.handleOpen(WindowProxy.java:161) [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiWindowProxy.handleMessage(TiWindowProxy.java:103) [ERROR] : TiApplication: at ti.modules.titanium.ui.WindowProxy.handleMessage(WindowProxy.java:444) [ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:95) [ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:154) [ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:4624) [ERROR] : TiApplication: at java.lang.reflect.Method.invokeNative(Native Method) [ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Method.java:511) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:809) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:576) [ERROR] : TiApplication: at dalvik.system.NativeStart.main(Native Method) {code} Steps to reproduce: Create default alloy project and run it on device. SDK 5.1.2.GA works without error.

    Appcelerator JIRA | 10 months ago | Andrey Tkachenko
    java.lang.NoSuchMethodError: android.app.Activity.startActivity
  2. 0

    Can't run application on device *Lenovo A630 Android 4.0.4* due error: {code} [ERROR] : TiApplication: (main) [1225,4779] Sending event: exception on thread: main msg:java.lang.NoSuchMethodError: android.app.Activity.startActivity; Titanium 5.2.0,2016/02/20 08:05,384775e [ERROR] : TiApplication: java.lang.NoSuchMethodError: android.app.Activity.startActivity [ERROR] : TiApplication: at ti.modules.titanium.ui.WindowProxy.handleOpen(WindowProxy.java:161) [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiWindowProxy.handleMessage(TiWindowProxy.java:103) [ERROR] : TiApplication: at ti.modules.titanium.ui.WindowProxy.handleMessage(WindowProxy.java:444) [ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:95) [ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:154) [ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:4624) [ERROR] : TiApplication: at java.lang.reflect.Method.invokeNative(Native Method) [ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Method.java:511) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:809) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:576) [ERROR] : TiApplication: at dalvik.system.NativeStart.main(Native Method) {code} Steps to reproduce: Create default alloy project and run it on device. SDK 5.1.2.GA works without error.

    Appcelerator JIRA | 10 months ago | Andrey Tkachenko
    java.lang.NoSuchMethodError: android.app.Activity.startActivity
  3. 0
    I was using the library hibernate-entitymanager:4.3.5.Final with java persistence API 2.0 instead of using it with hibernate-entitymanager:4.2.8.Final.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      android.app.Activity.startActivity

      at ti.modules.titanium.ui.WindowProxy.handleOpen()
    2. ti.modules.titanium
      WindowProxy.handleOpen
      1. ti.modules.titanium.ui.WindowProxy.handleOpen(WindowProxy.java:161)
      1 frame
    3. org.appcelerator.titanium
      TiWindowProxy.handleMessage
      1. org.appcelerator.titanium.proxy.TiWindowProxy.handleMessage(TiWindowProxy.java:103)
      1 frame
    4. ti.modules.titanium
      WindowProxy.handleMessage
      1. ti.modules.titanium.ui.WindowProxy.handleMessage(WindowProxy.java:444)
      1 frame
    5. Android Platform
      ActivityThread.main
      1. android.os.Handler.dispatchMessage(Handler.java:95)
      2. android.os.Looper.loop(Looper.java:154)
      3. android.app.ActivityThread.main(ActivityThread.java:4624)
      3 frames
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:511)
      2 frames
    7. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:809)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:576)
      2 frames
    8. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame