':app@debug/compileClasspath': Could not find any version that matches com.android.support:appcompat-v7:30.+.

ERROR: Unable to resolve dependency for :app@debug/compileClasspath: Could not find any 
version that matches com.android.support:appcompat-v7:30.+.

':app@debug/compileClasspath': Could not find any version that matches com.android.support:appcompat-v7:30.+.

 

1.前言

太久没玩安卓了,很多都忘记了,以前没有博客,很多坑没有记录,这个坑以此记录

2.原因

gradle依赖导入与当前工程sdk不匹配导致

3.解决

Android studio 与idea类似,智能化很高, ctrl + 回车  ,选择修改提示即可

':app@debug/compileClasspath': Could not find any version that matches com.android.support:appcompat-v7:30.+.

 

':app@debug/compileClasspath': Could not find any version that matches com.android.support:appcompat-v7:30.+.

上一篇:Android CameraX Not bound to a valid Camera


下一篇:第1年4月9日 Domain: com.apple.dt.MobileDeviceErrorDomain