简体   繁体   中英

Android studio error This support library should not use a lower version (19)

I created the project then error message:

Error:(23, 12) This support library should not use a lower version (19) than the targetSdkVersion (20)

error code is here: compile 'com.android.support:appcompat-v7:19.+'

Change

compile 'com.android.support:appcompat-v7:19.+'

to

compile 'com.android.support:appcompat-v7:20+'

first open SDK Manager and update the support Libary. or change the targetSDKVersion to 19

the filename is 'build.gradle'

Go to Tools--> Android--> SDK Manager --> SDK Tools tab --> Android Support Library --> look at the Version

then go to Project view--> YourProject -->app --> build.gradle --> change

compile 'com.android.support:appcompat-v7:19.+'

to

compile 'com.android.support:appcompat-v7:yourLatestVersion'

Android Support Library version must be replaced to the latest version you have in your SDK. Note that your targetSDKVersion must be the same as com.android.support:appcompat-v7:Version .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM