-1

I just started learning app development and Android Studio shows error. What should I do?

I cleared the caches and reloaded the project but that didn't help.

enter image description here

halfer
  • 19,824
  • 17
  • 99
  • 186
  • Please scroll through the list on the left in an upward direction and find a more accurate description of the problem there. – project_guru Aug 06 '23 at 08:24
  • Did you look here: https://stackoverflow.com/questions/75263047/duplicate-class-in-kotlin-android ? – David Wasser Aug 06 '23 at 11:39
  • My advice would be to create empty activity (when creating a new project) in that case you would start with one activity and one layout because now you have a few fragments as well which is too much if you start to learn Android. – Jonas.S. Aug 06 '23 at 11:50
  • Show your build.gradle (:app) code – M DEV Aug 07 '23 at 13:30

1 Answers1

0

It seems there is more than one version of 'kotlin-stdlib' in your project dependencies or in some 3rd-party libraries. Clearing the cache will not help for sure. Please check dependencies and remove kotlin-stdlib from there. It's not needed to include it manually in dependencies.

enter image description here

Dmitri Chernysh
  • 260
  • 1
  • 7