search

Home  >  Q&A  >  body text

android - 网上下载了的 RecyclerView.jar , 复制到工程 libs目录下,右键添加到工程。。。

天蓬老师天蓬老师2773 days ago685

reply all(2)I'll reply

  • 怪我咯

    怪我咯2017-04-17 15:46:22

    Android Studio just needs to add a sentence in gradle

    compile com.android.support:recyclerview- v7:23.0.1

    Then just sync it.

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 15:46:22

    It is included in the Android SDK, no need to import the jar package.
    Add a sentence directly to build.gradle under this module

    compile com.android.support:recyclerview- v7:23.0.1
    

    Then just synchronize Gradle.

    In addition, there is no need to add it manually after placing the jar package in the lib directory of Android Studio. Gradle will automatically add it because there is this sentence in Gradle:

    compile fileTree(include: ['*.jar'], dir: 'libs')

    reply
    0
  • Cancelreply