我想在我的android项目中使用opencv。通过“导入模块”导入opencv SDK。当我进行snyc时,它向我显示此错误:
ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve project :openCVLibrary.
Show Details
Affected Modules: app
ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve project :openCVLibrary.
Show Details
Affected Modules: app
ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve project :openCVLibrary.
Show Details
Affected Modules: app
我尝试了许多方法。
- 更改compileSdkVersion,现在compileSdkVersion为29。
- 删除像这样的全局gradle.properties代码
systemProp.http.proxyHost = 127.0.0.1
systemProp.https.proxyPort = 1087
systemProp.https.proxyHost = 127.0.0.1
systemProp.http.proxyPort = 1087- 将HTTP代理更改为无代理