Hi guys,
I need some help/guidance here. I followed this website instruction and manage to compile
with a difference of using NDK Version: android-ndk-r10e-linux-x86_64.bin
compiled under SDK 22
After that, instead of using Ubuntu Eclipse, i compressed and copied the whole thing to Windows and imported into Android Studio. Here I encounter such issues:
In Messages Build Gradle:
Error:Execution failed for task ':dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_75\bin\java.exe'' finished with non-zero exit value 2
And Java Exception
03-10 23:23:21.064 3425-3425/org.linphone E/AndroidRuntime: FATAL EXCEPTION: main
Process: org.linphone, PID: 3425
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: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.linphone-2/base.apk"],nativeLibraryDirectories=[/data/app/org.linphone-2/lib/x86, /vendor/lib, /system/lib]]] couldn't find "liblinphone-x86.so"
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: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.linphone-2/base.apk"],nativeLibraryDirectories=[/data/app/org.linphone-2/lib/x86, /vendor/lib, /system/lib]]] couldn't find "liblinphone-x86.so"
at java.lang.Runtime.loadLibrary(Runtime.java:367)
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)
I hope the information is enough to pinpoint where it went wrong and any workaround or fix for it, thanks in advance.