-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dokka showing <Error class: unknown class> for classes generated by data binding #2821
Comments
Hm, it looks like Dokka is unable to find the class for some reason. Some questions
|
It comes from the generated classes for databinding layout files. For instance, ActivityMainBinding is generated for activity_main.xml layout file It happens in any other place that the databinding generated class is being used Generated classes from the databinding framework also produce this error |
Any update on this? |
Related to: #503 |
Oh, this might be because generated files are suppressed by default for some reason. Try setting |
I tried this, however it didn't work for me. It happens that the generated files are under this directory Screenshot below Is it possible to configure dokka to also read files from this directory? |
I'm surprised
|
In case it still doesn't work, it might be that they are somehow not picked up properly..?
Try setting the |
Yeah. I used this configuration exactly this way but it didn't work. It seems |
I've tried this alternative. This output here shows that the generated files are saved under another directory apart from the main directory. However, the files in the main directory cannot recognize the generated files housed under the separate directory so the error still shows. To experiment something else, instead of passing the directory path of the generated files as the
Since there could be many files under the generated folder, adding the |
Describe the bug
Whenever I run dokka to generate documentation for a class with a type parameter that extends
ViewDataBinding
,I get this error:
<Error class: unknown class>
for that particular class.Expected behaviour
I expect that if that class doesn't exist, it should just be rendered as a plain text rather than that error
Dokka configuration
In the root build.gradle file, I'm importing dokka this way,
Also I'm applying a Gradle file(subprojects.gradle) into the root-level build.gradle
Installation
The text was updated successfully, but these errors were encountered: