我从Linphone克隆了以下Github回购 https://github.com/BelledonneCommunications/linphone-android
尝试构建和运行项目时,应用程序在启动时崩溃并出现以下异常
10-19 12:10:57.509 3358-3358/? E/dalvikvm: Could not find class 'org.linphone.tools.OpenH264DownloadHelper', referenced from method org.linphone.core.LinphoneCoreFactoryImpl.createOpenH264DownloadHelper
10-19 12:10:57.719 3358-3358/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: org.linphone, PID: 3358
java.lang.NoClassDefFoundError: org.linphone.tools.OpenH264DownloadHelper
at org.linphone.core.LinphoneCoreFactoryImpl.loadOpenH264(LinphoneCoreFactoryImpl.java:101)
at org.linphone.core.LinphoneCoreFactoryImpl.createLinphoneCore(LinphoneCoreFactoryImpl.java:116)
at org.linphone.LinphoneManager.startLibLinphone(LinphoneManager.java:661)
at org.linphone.LinphoneManager.createAndStart(LinphoneManager.java:297)
at org.linphone.LinphoneService.onCreate(LinphoneService.java:191)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2574)
at android.app.ActivityThread.access$1800(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5113)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)
at dalvik.system.NativeStart.main(Native Method)
答案 0 :(得分:0)
为避免此错误,请正确克隆linphone github repo。不要使用GitHub中的下载按钮,而是使用GitHub shell中的clone命令或GitHub桌面上的克隆选项