Reputation: 214
Hey I imported a project into my android studio and when I am trying to build the project it is showing this error into the error log:
ERROR: Could not find com.android.support:appcompat-v7:27.0.1.
Required by: project :app Search in build.gradle files
build.gradle
android {
compileSdkVersion 27
buildToolsVersion "28.0.3"
defaultConfig {
multiDexEnabled true
applicationId "com.ezs.boostantiv"
minSdkVersion 16
targetSdkVersion 26
versionCode 1
versionName "1"
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile files('libs/android-query-full.0.26.2-beta.1.jar')
// compile 'com.github.navasmdc:MaterialDesign:1.5@aar'
compile 'com.commit451:PhotoView:1.2.4'
compile 'com.android.support:appcompat-v7:27.0.1'
compile 'com.android.support:support-v4:27.0.1'
compile 'com.android.support:cardview-v7:27.0.1'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.github.kenumir:MaterialSettings:v.1.2.2'
compile 'com.android.support:design:27.1.1'
compile 'com.jakewharton:butterknife:8.2.1'
apt 'com.jakewharton:butterknife-compiler:8.2.1'
}
Please let me know how can I solve this issue. Thank you so much in advance.
Upvotes: 0
Views: 1992
Reputation: 445
Switch to Androidx Libraries,add below dependency
implementation 'androidx.appcompat:appcompat:1.1.0'
Upvotes: 3
Reputation: 560
migrate to androidx library. To map your current library to androidx, visit developer.android.com
Upvotes: 1