我正在为我的图书馆项目执行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'.
注意:构建时没有问题。