我创建了一个android应用程序,并希望将其作为模块添加到其他应用程序中。我尝试使用以下文件导入应用程序:File-> New-> Import Module->(浏览要导入的应用程序)->(更改模块名称)-> Finish

导入应用程序后,发生了以下更改:

setting.gradleimport ':app'

import ':ocr'

build.gradle(Module:app)implementation project(path: ':ocr')

并且该模块已添加到项目中。

但是当我尝试sync项目时,它显示以下错误:ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve project :ocr.

ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve project :ocr.

ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve project :ocr.

ERROR: Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve project :ocr.

ERROR: Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve project :ocr.

我尝试搜索所有问题,但无法解决。谁能说出问题出在哪里或如何解决?

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐