IBM Support

Android ADT 22 Compatibility with Worklight Studio

Troubleshooting


Problem

When upgrading a Worklight Studio development environment to version 22 of the Android ADT plugin, a error may result when launching the application on an emulator or device.

Symptom

When launching the Android application, an exception similar to the following will be seen.

FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.TestApp/com.TestApp.TestApp}: java.lang.ClassNotFoundException: com.TestApp.TestApp

    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1983)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
    at android.app.ActivityThread.access$600(ActivityThread.java:130)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:137)
    at android.app.ActivityThread.main(ActivityThread.java:4745)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:511)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
    at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: com.TestApp.TestApp
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
    at android.app.Instrumentation.newActivity(Instrumentation.java:1053)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1974)

[{"Product":{"code":"SSZH4A","label":"IBM Worklight"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Application Development","Platform":[{"code":"PF003","label":"Android"}],"Version":"5.0.6.1;5.0.6;5.0.5.1;5.0.5;5.0.0.3;5.0.0.1;5.0;4.2.2;4.2.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SS4HGH","label":"IBM Mobile Foundation"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Application Development","Platform":[{"code":"","label":"Google Android"}],"Version":"5.0.6.1;5.0.6;5.0.5.1;5.0.5;5.0.0.3;5.0.0.2;5.0.0.1;5.0.0;5.0","Edition":"Consumer;Enterprise","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
19 August 2022

UID

swg21640211