GithubHelp home page GithubHelp logo

Comments (5)

longquangpham90 avatar longquangpham90 commented on June 12, 2024 1

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.

aSemy avatar aSemy commented on June 12, 2024

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.

aSemy avatar aSemy commented on June 12, 2024

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.

longquangpham90 avatar longquangpham90 commented on June 12, 2024

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.

aSemy avatar aSemy commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.