Most of the time i see this issue on my android studio, while compling the application
1 2 3 |
Error:A problem occurred configuring project ':app'. Could not resolve all dependencies for configuration ':app:_debugCompile'. Could not find com.android.support:appcompat-v7:21.0.1. |
It is because the android studio couldnot find some of the libraries. Make sure you have them installed all the necessary libraries.
Here are some dependencies requirement for Android sdk versions above 21. You can modify this in your build.gradle file.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
dependencies{ //it requires compileSdkVersion 23 compile 'com.android.support:appcompat-v7:23.2.0' compile 'com.android.support:appcompat-v7:23.1.1' compile 'com.android.support:appcompat-v7:23.1.0' compile 'com.android.support:appcompat-v7:23.0.1' compile 'com.android.support:appcompat-v7:23.0.0' //it requires compileSdkVersion 22 compile 'com.android.support:appcompat-v7:22.2.1' compile 'com.android.support:appcompat-v7:22.2.0' compile 'com.android.support:appcompat-v7:22.1.1' compile 'com.android.support:appcompat-v7:22.1.0' compile 'com.android.support:appcompat-v7:22.0.0' //it requires compileSdkVersion 21 compile 'com.android.support:appcompat-v7:21.0.3' compile 'com.android.support:appcompat-v7:21.0.2' compile 'com.android.support:appcompat-v7:21.0.0' } |