How to include dependencies in build.gradle file under android app folder

Following example adds volley.jar, google play services, facebook android sdk, commons codec and others as dependencies in compile files in build.gradle file

In build.gradle file add below code as shown below,

dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile files('libs/volley.jar') compile files('libs/json-simple-1.1.1.jar') compile files('libs/httpmime-4.3.6.jar') compile files('libs/commons-codec-1.10.jar') compile files('libs/cos.jar') compile 'com.android.support:appcompat-v7:22.2.1' compile 'com.google.android.gms:play-services:8.1.0' compile 'com.facebook.android:facebook-android-sdk:4.1.0' compile 'com.android.support:design:22.2.1' }
Sign In or Register to comment.