:
1) Android.
2) build.gradle(Module: app) ( ).
3) copy the dependencies
example:
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:cardview-v7:24.1.1'
compile 'com.android.support:appcompat-v7:24.1.1'
compile 'com.android.support:design:24.1.1'
}
4) Add them to your old project, which gives an error.
5) Also see
compileSdkVersion 24
buildToolsVersion "24.0.0"
They should correspond to what was ever written after the v7 support library (android_support_lib_version).
6) Finally, synchronize the project again.
source
share