Comments (5)
Hi @aSemy
I have invite project example
Could you help me check project it
My project setup with multi module, we want to have document the same folder module project and by pass issue Error class: unknown class
Many thanks!
from dokkatoo.
Hi @longquangpham90, thanks for the report!
I can see see that you're encountering an "Error class: unknown class" error in the rendered HTML. However, I can't see see any obvious problem. I'd like to help, but I'd need more info. I'm not familiar with Android development. Can you share the project, or an example? How can I reproduce it? What versions of Gradle/Kotlin/Android/Dokkatoo are you using? What's the project structure? How many subprojects have you got? What configuration have you used?
from dokkatoo.
Thanks! I can't see anything wrong.
I can see that it's quite a large project, and I don't have time to investigate something of this size really. Also, because the project is quite big I can't download it, for security reasons.
I did have a look through though, and I have some notes:
- I couldn't find the source code for the
FragmentSplashBinding
class (GitHub doesn't let you search for code in branches, so maybe I missed it). Are you sure such a class exists? - I can see that the project uses script plugins. That might interfere with Dokka discovering information from AGP. I recommend using convention plugins instead.
from dokkatoo.
Thanks @aSemy
"FragmentSplashBinding" is a class generated by the Android Data Binding Library when you use Data Binding in your Android app. It is generated from a layout XML file named "fragment_splash.xml" in this case. This class contains references to UI components in the layout XML
from dokkatoo.
Ahh okay. So if it's generated, you might need to tell Dokkatoo to use the generated sources. Those generated files are used during compilation, so Dokkatoo should detected them automatically, but I guess that's not the case...
I'd really like to fix it, but I'm really not an Android dev. Could you help me out and create a smaller reproducer? Does it need to be a multi-module project, or does it also happen in a single module project?
To fix it in the meantime, you could try telling Dokkatoo about the source directory. Something like this:
// build.gradle.kts
// ...
dokkatoo {
dokkatooSourceSets.named("main") {
sourceRoots.from( /* TODO tasks.named("nameOfTaskThatGeneratesSources") */ )
}
}
from dokkatoo.
Related Issues (20)
- Use Gradle to download & cache package lists HOT 2
- Sub-modules don't inherit the footer message for HTML Dokka docs HOT 2
- Update Dokka to 1.9.0 HOT 3
- README for examples HOT 2
- Error: "Could not determine the dependencies of task ':<project>:dokkatooGenerateModuleHtml'." HOT 12
- Empty publication when Kotlin plugin applied to subprojects, but not to root project (with apply=false) HOT 9
- Dependency Dashboard
- Update default Dokka version to 1.9.10 HOT 2
- Warning "Configuration 'dokkatooHtmlResolver' was resolved during configuration time" in Android projects HOT 1
- Add warning when trying to generate a HTML publication with modules, but `all-modules-page-plugin` is not in the plugin classpath
- Consider using different Gradle attributes for `dokkatooHtmlPublicationPluginClasspathApiOnlyConsumable` HOT 9
- How to fix OOM HOT 6
- Compilation error only happening during Dokka build HOT 24
- feature request: support multiple aggregations at the root for the same project HOT 1
- Using dokkatoo in precompiled script plugins causes "Internal Dokkatoo API" warnings HOT 4
- Dokka plugin support HOT 4
- Allow applying Dokkatoo to pure Java projects
- Dokkatoo uses typesafe Attributes, which are bugged in Gradle
- Point default Kotlin stdlib external doc URL to new location
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dokkatoo.