在Android studio中添加jar包方法以下

一、將jar包放入項目裏的libs文件夾中。   android

二、在project選中jar包點擊右鍵"Add as library"。   gradle

三、這兩步是網上比較容易找到的,但此時項目仍然是沒法正常編譯的,這時須要在項目的build.gradle文件裏的dependencies節加入 dependencies  ui

{      ci

        compile files('libs/android-support-v4.jar') 編譯

       compile files('libs/xxxx.jar')  file

項目

相關文章
相關標籤/搜索