-
-
Notifications
You must be signed in to change notification settings - Fork 134
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
Generated source dependencies not found under canary AGP 8.0.0-alpha09 #314
Comments
Facing same issue, have not tried using lower versions of AGP. Compose destinations version: |
Hi guys 👋 looks like an issue with IDE and AGP indeed. (Last retry says it works if you specify the source sets in a different way? 🤷♂️) And this: I’m afraid not much I can do here, let’s see if we have some news soon 🤞 |
Thanks for looking into it. It looks as if https://issuetracker.google.com/issues/255915317 would have solved the issue. Might not have landed in AGP alpha9 yet. Keeping fingers crossed. |
I think the issue has not been resolved in |
Change your ksp configuration to
|
This is also the case with AGP 7.4.0 (I was wondering if this was linked to the library but it seems that AGP is the culprit) |
I was able to fix this in this commit: COMMIT: 9101a1a I used the workaround explained in the google issue and it is working for me. |
I can confirm that the updated declaration via the java source set works with AGP 7.3.1 (previous min supported version) and AGP 7.4.0 (the min not working version). I also tried with 8.1.0-alpha01 but that caused some different issues in my test setup, likely due to an early alpha of the AGP plugin. |
Didn't have this issue until I refactored the app to use multiple modules. However this fixed it for me! |
We now have multiple solutions for this KSP related issue. Either use the above mentioned fix, or migrate to KSP 1.8.0-1.0.9 which completely fixes this, so you can remove all these explicit indications of the generated files in the build.gradle. Given this, I'm closing the issue, let me know if you're still dealing with something similar. |
I can confirm that removing the explicit source location is not required with ksp 1.8.10 and agp 7.4.0. |
Added a warning on top of readme file too |
Setting up a project to use compose-destinations with the android gradle plugin
8.0.0-alpha09
does generated the correct sources but they are not correctly picked up by setting the source dir to the generated folder.Using the current stable version
7.3.1
of the AGP plugin does work as expected.Is there some documentation on what version of the AGP plugin is compatible? Also is there a way to make it work with the Canary version?
The text was updated successfully, but these errors were encountered: