Android studio提示this support library should not use a different version (25)问题的解决

targetSdkVersion 28 版本高于 com.android.support:appcompat-v7:25.0.0 时,Android Studio提示
this support library should not use a different version (25)

如下图:

解决办法:

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

改为

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

或者

compile 'com.android.support:appcompat-v7:28.+'
完!!!

猜你喜欢

转载自blog.csdn.net/xialong_927/article/details/80842846