Binding : Unable to start activity ComponentInfo error

I worked on binding a Java Library (.jar) and updated metadata.xml accordingly.

I created a Xamarin.Android app and started consuming the bound jar. While trying to launch the app on an android emulator (API 21). I am seeing this error

at --- End of managed exception stack trace ---
at java.lang.RuntimeException: Unable to start activity ComponentInfo{com.test.count.android/md598068429da46ca9aa0a94dc9dbe63dea.MainActivity}: ext.com.google.inject.ProvisionException: Guice provision errors:
at 1) Error in custom provider, java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at at com.applause.android.inject.ApplauseModule.provideClient(Unknown Source)
at while locating com.applause.android.logic.AbstractClient
at 1 error
at at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2298)
at at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)
at at android.app.ActivityThread.access$800(ActivityThread.java:144)
at at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
at at android.os.Handler.dispatchMessage(Handler.java:102)
at at android.os.Looper.loop(Looper.java:135)
at at android.app.ActivityThread.main(ActivityThread.java:5221)
at at java.lang.reflect.Method.invoke(Native Method)
at at java.lang.reflect.Method.invoke(Method.java:372)
at at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
at at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
at Caused by: ext.com.google.inject.ProvisionException: Guice provision errors:
at 1) Error in custom provider, java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at at com.applause.android.inject.ApplauseModule.provideClient(Unknown Source)
at while locating com.applause.android.logic.AbstractClient
at 1 error
at at ext.com.google.inject.InjectorImpl$4.get(InjectorImpl.java:767)
at at ext.com.google.inject.InjectorImpl.getInstance(InjectorImpl.java:793)
at at com.applause.android.inject.AppInjector.getInstance(AppInjector.java:51)
at at com.applause.android.Applause.init(Applause.java:95)
at at com.applause.android.Applause.init(Applause.java:79)
at at com.applause.android.Applause.startNewSession(Applause.java:75)
at at md598068429da46ca9aa0a94dc9dbe63dea.MainActivity.n_onCreate(Native Method)
at at md598068429da46ca9aa0a94dc9dbe63dea.MainActivity.onCreate(MainActivity.java:28)
at at android.app.Activity.performCreate(Activity.java:5937)
at at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
at at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251)
at ... 10 more
at Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at at ext.com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:106)
at at ext.com.google.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
at at ext.com.google.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:45)
at at ext.com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:811)
at at ext.com.google.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:42)
at at ext.com.google.inject.Scopes$1$1.get(Scopes.java:54)
at at ext.com.google.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:48)
at at ext.com.google.inject.InjectorImpl$4$1.call(InjectorImpl.java:758)
at at ext.com.google.inject.InjectorImpl.callInContext(InjectorImpl.java:804)
at at ext.com.google.inject.InjectorImpl$4.get(InjectorImpl.java:754)
at ... 20 more
at Caused by: java.lang.reflect.InvocationTargetException
at at java.lang.reflect.Method.invoke(Native Method)
at at java.lang.reflect.Method.invoke(Method.java:372)
at at ext.com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:101)
at ... 29 more
at Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/applause/android/R$string;
at at com.applause.android.common.SdkProperties.getVariant(SdkProperties.java:23)
at at com.applause.android.inject.ApplauseModule.provideClient(ApplauseModule.java:106)
at ... 32 more
at Caused by: java.lang.ClassNotFoundException: Didn't find class "com.applause.android.R$string" on path: DexPathList[[zip file "/data/app/com.test.count.android-1/base.apk"],nativeLibraryDirectories=[/data/app/com.test.count.android-1/lib/arm, /vendor/lib, /system/lib]]
at at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
at ... 34 more
at Suppressed: java.lang.ClassNotFoundException: com.applause.android.R$string
at at java.lang.Class.classForName(Native Method)
at at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
at ... 35 more
at Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available

Posts

  • To add, error is initiated from JNIEnv.CallStaticBooleanMethod.

    Any quick inputs is appreciated.

Sign In or Register to comment.