Gradle警告错误:在库项目的compileReleaseJavaWithJavac上找不到符号R

时间:2018-12-04 13:39:00

标签: android gradle library-project

我正在为我的图书馆项目执行Gradle任务installArichives。 在步骤compileReleaseJavaWithJavac上打印:

/Users/myuser/project/library/src/main/java/com/project/Class.java:3: error: cannot find symbol
import com.project.library.R;
                            ^
  symbol:   class R
  location: package com.project.library

仍然是:

BUILD SUCCESSFUL in 35s
400 actionable tasks: 373 executed, 27 up-to-date
3:14:36 PM: Task execution finished 'installArchives'.

注意:构建时没有问题。

0 个答案:

没有答案