直接将jar包拷贝到app/libs下,然后在app下的build.gradle中添加此jar的依赖。如下:
dependencies { compile fileTree(dir: ‘libs‘, include: [‘*.jar‘]) testCompile ‘junit:junit:4.12‘ compile ‘com.android.support:appcompat-v7:23.1.1‘ compile ‘com.android.support:design:23.1.1‘ compile files(‘libs/core-3.0.0.jar‘) }
时间: 2024-12-26 04:24:00