Here's the full error description:
03-10 08:10:56.747 15864-15864/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: org.linphone,
PID: 15864
java.lang.ExceptionInInitializerError
at
java.lang.Class.classForName(Native Method)
at
java.lang.Class.forName(Class.java:324)
at
java.lang.Class.forName(Class.java:285)
at
org.linphone.core.LinphoneCoreFactory.instance(LinphoneCoreFactory.java:44)
at
org.linphone.LinphoneService.onCreate(LinphoneService.java:138)
at
android.app.ActivityThread.handleCreateService(ActivityThread.java:2877)
at
android.app.ActivityThread.-wrap4(ActivityThread.java)
at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1427)
at
android.os.Handler.dispatchMessage(Handler.java:102)
at
android.os.Looper.loop(Looper.java:148)
at
android.app.ActivityThread.main(ActivityThread.java:5417)
at
java.lang.reflect.Method.invoke(Native Method)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by:
java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: dlopen failed:
/data/app/org.linphone-1/lib/x86/liblinphone-x86.so: has text relocations
at
org.linphone.core.LinphoneCoreFactoryImpl.<clinit>(LinphoneCoreFactoryImpl.java:67)
at
java.lang.Class.classForName(Native Method)
at
java.lang.Class.forName(Class.java:324)
at
java.lang.Class.forName(Class.java:285)
at
org.linphone.core.LinphoneCoreFactory.instance(LinphoneCoreFactory.java:44)
at
org.linphone.LinphoneService.onCreate(LinphoneService.java:138)
at
android.app.ActivityThread.handleCreateService(ActivityThread.java:2877)
at
android.app.ActivityThread.-wrap4(ActivityThread.java)
at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1427)
at
android.os.Handler.dispatchMessage(Handler.java:102)
at
android.os.Looper.loop(Looper.java:148)
at
android.app.ActivityThread.main(ActivityThread.java:5417)
at
java.lang.reflect.Method.invoke(Native Method)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by:
java.lang.UnsatisfiedLinkError: dlopen failed:
/data/app/org.linphone-1/lib/x86/liblinphone-x86.so: has text relocations
at
java.lang.Runtime.loadLibrary(Runtime.java:372)
at
java.lang.System.loadLibrary(System.java:1076)
at
org.linphone.core.LinphoneCoreFactoryImpl.<clinit>(LinphoneCoreFactoryImpl.java:57)
at
java.lang.Class.classForName(Native Method)
at
java.lang.Class.forName(Class.java:324)
at
java.lang.Class.forName(Class.java:285)
at
org.linphone.core.LinphoneCoreFactory.instance(LinphoneCoreFactory.java:44)
at
org.linphone.LinphoneService.onCreate(LinphoneService.java:138)
at
android.app.ActivityThread.handleCreateService(ActivityThread.java:2877)
at
android.app.ActivityThread.-wrap4(ActivityThread.java)
at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1427)
at
android.os.Handler.dispatchMessage(Handler.java:102)
at
android.os.Looper.loop(Looper.java:148)
at
android.app.ActivityThread.main(ActivityThread.java:5417)
at
java.lang.reflect.Method.invoke(Native Method)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Post by Philip ChooI have tried on compiling in Android Studio using version 22, in my gradle
compileSdkVersion 22
buildToolsVersion "20.0.0"
has text relocations still exists. Is it something to do with the NDK? As
previously mentioned, the liblinphone-x86.so was taken from
linphone-android-sdk.
The source code downloaded is from git://
git.linphone.org/linphone-android.git --recursive
Where did i go wrong.....
Post by Philip ChooThanks Renzo. For point 3, any suggestions or link I should read/study
first on how liblinphone SDK works? For audio call, and video call?
Appreciate your pointers very much.
Post by Renzo Santillán Ch.this happen when you run on android >= 6.0
If you have source code. Try to change compile with 22 version
Post by Philip ChooHi guys,
Need some guidance/help here as I'm trying to get the downloaded
source code of Linphone to work and run on Android however I have encounter
one issue.
1. Was missing x86/liblinphone-x86.so in the libs directory,
however I placed in with the Android Linphone SDK liblinphone-x86.so
/data/app/org.linphone-1/lib/x86/liblinphone-x86.so: has text
relocations
How do I fix those?
3. Lastly I would ask for simple example source code, what I want
to do is just a simple android app, whenever a button is pressed, it will
make a sip video call
Sorry for the noob questions, still relatively new with
Android......and thanks in advance.
Philip
_______________________________________________
Linphone-developers mailing list
https://lists.nongnu.org/mailman/listinfo/linphone-developers
--
Cordialmente.
Santillán Chavez Renzo David.
+51 993297151
_______________________________________________
Linphone-developers mailing list
https://lists.nongnu.org/mailman/listinfo/linphone-developers