无法在android上运行linphone(Ubuntu)

时间:2014-06-20 06:18:05

标签: android ubuntu android-ndk linphone

我从(git clone git://git.linphone.org/linphone-android.git --recursive)git responsitory下载了代码,并按照已下载的源代码中的readme.txt文件进行了操作。我按照自述文件中的说明安装了自动工具,并在我的项目上运行make命令,但错过了一点,因为我的电脑不是64位电脑。重点是:

    On 64 bits linux systems you'll need the ia32-libs package
    With the latest Debian (multiarch), you need this:
    dpkg --add-architecture i386
    aptitude update
    aptitude install libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386

所以按照所有说明后我成功地提交了项目并成功清理它并在控制台上收到消息:

**** Build of configuration Default for project linphone-android ****

bash /home/redhat/chang_data/chandan/chandan/frommhs/ways/waysAndroid/ways/linphone-android/build_native.sh NDK_DEBUG=1 V=1 all 
bash: /home/redhat/chang_data/chandan/chandan/frommhs/ways/waysAndroid/ways/linphone-android/build_native.sh: No such file or directory

**** Build Finished ****

但在那之后,当我运行我的项目时,它正在设备上运行,但在一个点上崩溃,例外是:

06-19 21:01:41.563: E/AndroidRuntime(9550): FATAL EXCEPTION: main
06-19 21:01:41.563: E/AndroidRuntime(9550): java.lang.RuntimeException: Unable to start activity ComponentInfo{org.linphone/org.linphone.LinphoneActivity}: java.lang.NullPointerException
06-19 21:01:41.563: E/AndroidRuntime(9550):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2343)
06-19 21:01:41.563: E/AndroidRuntime(9550):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2395)
06-19 21:01:41.563: E/AndroidRuntime(9550):     at android.app.ActivityThread.access$600(ActivityThread.java:162)
06-19 21:01:41.563: E/AndroidRuntime(9550):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)
06-19 21:01:41.563: E/AndroidRuntime(9550):     at android.os.Handler.dispatchMessage(Handler.java:107)
06-19 21:01:41.563: E/AndroidRuntime(9550):     at android.os.Looper.loop(Looper.java:194)
06-19 21:01:41.563: E/AndroidRuntime(9550):     at android.app.ActivityThread.main(ActivityThread.java:5392)
06-19 21:01:41.563: E/AndroidRuntime(9550):     at java.lang.reflect.Method.invokeNative(Native Method)
06-19 21:01:41.563: E/AndroidRuntime(9550):     at java.lang.reflect.Method.invoke(Method.java:525)
06-19 21:01:41.563: E/AndroidRuntime(9550):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
06-19 21:01:41.563: E/AndroidRuntime(9550):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
06-19 21:01:41.563: E/AndroidRuntime(9550):     at dalvik.system.NativeStart.main(Native Method)
06-19 21:01:41.563: E/AndroidRuntime(9550): Caused by: java.lang.NullPointerException
06-19 21:01:41.563: E/AndroidRuntime(9550):     at org.linphone.LinphonePreferences.getConfig(LinphonePreferences.java:74)
06-19 21:01:41.563: E/AndroidRuntime(9550):     at org.linphone.LinphonePreferences.isProvisioningLoginViewEnabled(LinphonePreferences.java:963)
06-19 21:01:41.563: E/AndroidRuntime(9550):     at org.linphone.LinphoneActivity.onCreate(LinphoneActivity.java:145)
06-19 21:01:41.563: E/AndroidRuntime(9550):     at android.app.Activity.performCreate(Activity.java:5122)
06-19 21:01:41.563: E/AndroidRuntime(9550):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1081)
06-19 21:01:41.563: E/AndroidRuntime(9550):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2307)
06-19 21:01:41.563: E/AndroidRuntime(9550):     ... 11 more

我在类org.linphone.LinphonePreferences

这个方法中遇到异常
public LpConfig getConfig() {
        LinphoneCore lc = getLc();
        if (lc != null)
            return lc.getConfig();

        return LinphoneCoreFactory.instance().createLpConfig(LinphoneManager.getInstance().mLinphoneConfigFile);
    }

这是因为linphonecorefactory实例不存在,因为实例方法无法找到类" org.linphone.core.LinphoneCoreFactoryImpl"。

请告诉我如何解决此问题。

0 个答案:

没有答案