Some problems were found with the configuration of task ':app:generateSafeArgsDebug' (type 'ArgumentsGenerationTask').
I just came across this issue too when upgrading to Gradle 7. Managed to fix it by switching my old navigation safe args plugin to the AndroidX version - Not sure how I missed that during my AndroidX refactor
// From
classpath("android.arch.navigation:navigation-safe-args-gradle-plugin:1.0.0")
// To
classpath("androidx.navigation:navigation-safe-args-gradle-plugin:2.4.1")
As mentioned by @mononz, the issue was caused by upgrading Android Gradle Plugin to version 7.0.0
but @Androiderson's comment helped fix the issue as I was already using the AndroidX version. I updated the safe args plugin to version 2.3.5
. Navigation Release Notes
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With