The method swig_module_init cannot be found in your native library or libraries either because:
- The native library does not exist for the target processor architecture - The native library is not correctly loaded - The method does not exist in the native library (check for correct spelling of package and method name). Especially the last point can happen if you refactor your Java code without making the according changes in your native code. On Saturday, January 12, 2013 2:07:43 AM UTC-6, Juned Khan wrote: > > I have project source as well as apk file. if i am directly installing APK > on emulator then its working fine but while running the application from > eclipse i am getting following errors. > > 01-12 07:45:42.918: E/AndroidRuntime(889): FATAL EXCEPTION: main > 01-12 07:45:42.918: E/AndroidRuntime(889): > java.lang.ExceptionInInitializerError > 01-12 07:45:42.918: E/AndroidRuntime(889): at > com.ims.IMSClientActivity.<init>(IMSClientActivity.java:64) > 01-12 07:45:42.918: E/AndroidRuntime(889): at > java.lang.Class.newInstanceImpl(Native Method) > 01-12 07:45:42.918: E/AndroidRuntime(889): at > java.lang.Class.newInstance(Class.java:1409) > 01-12 07:45:42.918: E/AndroidRuntime(889): at > android.app.Instrumentation.newActivity(Instrumentation.java:1021) > 01-12 07:45:42.918: E/AndroidRuntime(889): at > android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1561) > 01-12 07:45:42.918: E/AndroidRuntime(889): at > android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663) > 01-12 07:45:42.918: E/AndroidRuntime(889): at > android.app.ActivityThread.access$1500(ActivityThread.java:117) > 01-12 07:45:42.918: E/AndroidRuntime(889): at > android.app.ActivityThread$H.handleMessage(ActivityThread.java:931) > 01-12 07:45:42.918: E/AndroidRuntime(889): at > android.os.Handler.dispatchMessage(Handler.java:99) > 01-12 07:45:42.918: E/AndroidRuntime(889): at > android.os.Looper.loop(Looper.java:123) > 01-12 07:45:42.918: E/AndroidRuntime(889): at > android.app.ActivityThread.main(ActivityThread.java:3683) > 01-12 07:45:42.918: E/AndroidRuntime(889): at > java.lang.reflect.Method.invokeNative(Native Method) > 01-12 07:45:42.918: E/AndroidRuntime(889): at > java.lang.reflect.Method.invoke(Method.java:507) > 01-12 07:45:42.918: E/AndroidRuntime(889): at > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) > 01-12 07:45:42.918: E/AndroidRuntime(889): at > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) > 01-12 07:45:42.918: E/AndroidRuntime(889): at > dalvik.system.NativeStart.main(Native Method) > 01-12 07:45:42.918: E/AndroidRuntime(889): Caused by: > java.lang.ExceptionInInitializerError > 01-12 07:45:42.918: E/AndroidRuntime(889): at > com.Aloha.tinyWRAP.ProxyVideoProducer.registerPlugin(ProxyVideoProducer.java:65) > 01-12 07:45:42.918: E/AndroidRuntime(889): at > com.Aloha.ngn.NgnEngine.initialize(NgnEngine.java:67) > 01-12 07:45:42.918: E/AndroidRuntime(889): at > com.ims.Engine.<clinit>(Engine.java:37) > 01-12 07:45:42.918: E/AndroidRuntime(889): ... 16 more > 01-12 07:45:42.918: E/AndroidRuntime(889): Caused by: > java.lang.UnsatisfiedLinkError: swig_module_init > 01-12 07:45:42.918: E/AndroidRuntime(889): at > com.Aloha.tinyWRAP.tinyWRAPJNI.swig_module_init(Native Method) > 01-12 07:45:42.918: E/AndroidRuntime(889): at > com.Aloha.tinyWRAP.tinyWRAPJNI.<clinit>(tinyWRAPJNI.java:679) > 01-12 07:45:42.918: E/AndroidRuntime(889): ... 19 more > > P.S :Some libraries are used in this project > > Help me to solve this problem. > > > http://stackoverflow.com/questions/14291457/getting-java-lang-exceptionininitializererror-and-java-lang-unsatisfiedlinkerror > > Thanks > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en