AS 中报错:Error:(22, 0) Project with path ':library' could not be found in project ':indict
程序员文章站
2022-03-02 17:09:01
...
Android Studio 中报错:Error:(22, 0) Project with path ‘:library’ could not be found in project ‘:indictorsample’.
报错提示:
Android Studio 中报错:
F:\Android\Workspace\NewsApplication\indictorsample\build.gradle
Error:(22, 0) Project with path ':library' could not be found in project ':indictorsample'.
<a href="openFile:F:\Android\Workspace\NewsApplication\indictorsample\build.gradle">Open File</a>
分析:
其中的 indictorsample 项目,所依赖的 library 库有问题,路径错了
解决思路及方案:
在 indictorsample 项目中,在其 build.gradle 下,把 compile project(':library') 改成:compile project(':Indicatorlibrary')