android 库的 withJavadocJar() 和 withSourcesJar() gradle

lig*_*igi 6 android gradle

有没有办法利用新功能withSourcesJar()withJavadocJar()Android 库项目?目前,当我尝试使用它时,我得到:

> SourceSet with name 'main' not found.
Run Code Online (Sandbox Code Playgroud)

Chr*_*iki 5

使用最新的 Gradle 6.0.1 版本,似乎无法在 Android 库项目中使用这些新方法。这里\xe2\x80\x99s为什么我相信\xe2\x80\x99s是这种情况:

\n\n\n