-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[KSP] [Hilt] Incremental compilation fails with java.lang.NullPointerException #4063
Comments
Please find this toy project reproducing the issue: |
+1, we ran into the same problem. Thanks for reporting this issue. |
A quick update on this -- this appears to be an issue with how KSP exposes its output cache during incremental processing. I've filed a bug with the KSP team here: google/ksp#1555. In the meantime, it is possible to workaround this issue in Dagger until the issue gets resolved in KSP. We should have the fix out this week and hopefully do a release as well. |
This change should be temporary until we can get a more robust fix in KSP (google/ksp#1555). Fixes #4063 Fixes #4054 RELNOTES=N/A PiperOrigin-RevId: 568629041
This change should be temporary until we can get a more robust fix in KSP (google/ksp#1555). Fixes #4063 Fixes #4054 RELNOTES=N/A PiperOrigin-RevId: 568629041
This change should be temporary until we can get a more robust fix in KSP (google/ksp#1555). Fixes #4063 Fixes #4054 RELNOTES=N/A PiperOrigin-RevId: 568629041
Getting this during incremental compilation after trying out Dagger 2.48 with ksp in an Android app.
There is a hierarchy of two Activities. Let's say
ActivityA extends ActivityB
ActivityB extends AppCompatActivity
Both are annotated with
@AndroidEntryPoint
.Initial compilation works fine, but when I change something in ActivityA file and try to compile, I get
When I now modify ActivityB file and run compilation, it again compiles fine.
The full stack trace is as follows:
The text was updated successfully, but these errors were encountered: