I just installed AS, updated the Android SDK, but when I build even an empty project, an error occurs, and the AppCompatActivity class also does not find it. Tell me what could be the problem?

enter image description here

enter the image description here

  • Welcome to Stack Overflow in Russian ! It is better to provide textual information in the form of text, not images: it is more convenient to read, and search engines will index it - aleksandr barakin
  • Did you add the appcompat library to the project? If you are just starting out, I advise you not to bother and change AppCompatActivity to Activity . Come back when you understand the principles - Flippy
  • Try adding androidTestCompile 'com.squareup:javawriter:2.2.1' to the dependencies block in the module-level build.gradle file. - post_zeew

1 answer 1

You most likely did not complete the SDK, download everything from the Tools and Extras tabs in your SDK Manager.