To add androidx.navigation.safeargs
plugin follow below step's
-
classpath "android.arch.navigation:navigation-safe-args-gradle-plugin:1.0.0"
(latest) Add above to your Project Gradel file inside dependency block
-
Then add
apply plugin: 'androidx.navigation.safeargs'
to your app/Module gradle file
相关问题:
Some problems were found with the configuration of task ':app:generateSafeArgsDebug' (type 'ArgumentsGenerationTask'). After upgrading gradle to 7.0
Ask Question
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.3.5")
Some problems were found with the configuration of task ':app:generateSafeArgsDebug' (type 'ArgumentsGenerationTask'). After upgrading gradle to 7.0
Ask Question