Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Some problems were found with the configuration of task ':app:generateSafeArgsDebug' (type 'ArgumentsGenerationTask'). After upgrading gradle to 7.0

Some problems were found with the configuration of task ':app:generateSafeArgsDebug' (type 'ArgumentsGenerationTask').

  • Type 'ArgumentsGenerationTask' property 'applicationId' is missing an input or output annotation.
like image 287
joskar Avatar asked Apr 10 '21 21:04

joskar


2 Answers

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")
like image 125
mononz Avatar answered Nov 19 '22 00:11

mononz


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

like image 13
mementoGuy Avatar answered Nov 18 '22 23:11

mementoGuy