2

I want to import this library to my android project but I don't know how.

https://github.com/guardianproject/android-ffmpeg-java

Wai Ha Lee
  • 8,598
  • 83
  • 57
  • 92
Sajad Norouzi
  • 1,790
  • 2
  • 17
  • 26

5 Answers5

1

Follow below steps :

  1. goto File>Project Structure (ctrl+alt+shift+s)

  2. click on top green + button. enter image description here

  3. Import Eclipse edt project > next > find lib from desktop > next > finish. enter image description here enter image description here

  4. Click on app in project structure and go to dependencies enter image description here

  5. click on + button and select module dependencies and select your lib project. enter image description here enter image description here
Chirag Savsani
  • 6,020
  • 4
  • 38
  • 74
  • I used this method and added module but I just want to use it as a library using it in module format wants to set my setting like icon and it makes my app crash, so what should I do ? – Sajad Norouzi Oct 20 '15 at 10:33
  • it seems that two program run: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. at android.support.v7.app.AppCompatDelegateImplBase.onCreate(AppCompatDelegateImplBase.java:122) at android.support.v7.app.AppCompatDelegateImplV7.onCreate(AppCompatDelegateImplV7.java:146) at android.support.v7.app.AppCompatActivity.onCreate(AppCompatActivity.java:59) at com.example.sajad.second.MainActivity.onCreate(MainActivity.java:199) at android.app.Activity.performCreate(Activity.java:5264) – Sajad Norouzi Oct 20 '15 at 13:50
  • Have you added AppCompat Lib in your project? in app gradle "compile 'com.android.support:appcompat-v7:23.0.1' " – Chirag Savsani Oct 21 '15 at 04:23
1

The project isn't Gradle library and the simplest way to use it in Android Studio - just export jar via Eclipse:

Here is result:

Hope it will be helpful for you.

Mikalai Daronin
  • 8,590
  • 2
  • 35
  • 47
0

I was wondering as well.

I got an answer which sadly didnt solve my case, but it will probably help you: How to include a ZIP file from github to an existing android studio project?

Community
  • 1
  • 1
Virthuss
  • 3,142
  • 1
  • 21
  • 39
0

Download this lib, unpack and select after that: File >> New >> New module

pepe-pa
  • 552
  • 1
  • 5
  • 13
0

enter image description here

Click to, build.gradle. After that, dependencies {//add a library}. And finally Sync now.