Android Studio. Can't include external library properly

前端 未结 3 1465
别那么骄傲
别那么骄傲 2021-01-12 09:31

I\'m trying to add to classpath external library (this one). The way I do it: File -> Project Structure -> Dependencies tab -> Add file dependency. Is

3条回答
  •  灰色年华
    2021-01-12 10:16

    How to add external libraries into Android Studio:

    • change Project View from Android to Project.
    • add the external library into the directory of "libs" of the project you want put the jar file into.
    • select the "libs/xxx.jar" and right-click, select "Add as a library".

    Then check dependencies of build.gradle, you will find jar file is added successfully.

提交回复
热议问题