Linphone Android how to import the library project?

后端 未结 4 1842
一个人的身影
一个人的身影 2020-12-06 15:35

I am working on SIP application and using Linphone Library. I am trying to make and run the build on the device but getting few issues

I have setup the Android SDK a

相关标签:
4条回答
  • 2020-12-06 16:03

    after building the library you have to import it in eclipse
    File -> New -> Other... -> Android -> Android Project from Existing Code -> Browse_your_project

    Now open your application (Project which have activity) and assign linphone library which you have earlier loaded....
    Right click on your project -> select Android tab from left hand side -> from the bottom library section, click on "Add..." -> you will see the listed library which you have in your eclipse workspace -> select correct one -> click "OK" -> now refresh and clean the project -> build and try to run

    0 讨论(0)
  • 2020-12-06 16:09

    As suggested by @bhavana I was doing wrong while importing the linphone-android project into my eclipse. The correct process is explained below-

    Importing into Eclipse : After i have made the build then now i just need to import the project into eclipse.

    Step1: Go to eclipse click on File Menu then Import then select Existing Android Code into Workspace

    Hit Next and Browse to the linphone-android project folder And Only tick linohone-android folder and Leave copy project into workspace untick Like the below image: enter image description here

    And hit finish. Now i right clicked on "linphone-android" (project name) and go to Properties and Java Build Path and then Order and Export and then reorder them as my image below and untick gcm.jar enter image description here

    Hit OK And Boom No errors Now just run it on device or emulator. (Cross check minimum target SDK matches with the device or emulator.)

    The above steps worked fine for me.

    0 讨论(0)
  • 2020-12-06 16:22

    check complete guide on linphone android on coders hub.

    0 讨论(0)
  • 2020-12-06 16:24

    Yes , it worked finally. After build using "make" command.I installed in my device using "make install". Also generated sdk using "make linphone-sdk" And then simply imported in eclispe just like normal android project. Without any error it worked. - thank god.

    In windows8 cygwin created many issues, so i did build the code using "make" command in MAC. And then simply imported in windows eclipse. (some admin permission issue in MAC) Note: android-ndk-R9c was failed my build. So then i tried with android-ndk-R9 without additional toolchain it worked great. Android-ndk old versions available at (http://page2rss.com/0dc3a880ab1762303011d69d18408917).

    0 讨论(0)
提交回复
热议问题