End of August is coming and we need to upgrade api levels.Every year I do it with android studio easily.This time again I upgraded to latest version of android studio,I deleted .gradle and .idea files to sync the project but I get this error:
Could not resolve all dependencies for configuration ':app:debugRuntimeClasspathCopy'.
Cannot select root node 'debugRuntimeClasspathCopy' as a variant. Configurations should not act as both a resolution root and a variant simultaneously. Be sure to mark configurations meant for resolution as canBeConsumed=false or use the 'resolvable(String)' configuration factory method to create them.
Another error at the same time:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to docs.gradle.org/9.0-milestone-1/userguide/command_line_interface.html in the Gradle documentation.
I couldnt solve this issue,if anybody encountered similar issues I would be happy if you help,thanks.