1

What I see when trying to add a new activity to a project:

NZ1999
  • 21
  • 5
  • 1
    You can try to Sync Project with Gradle files. It helped to solve [similar problem](https://stackoverflow.com/a/55537030/9972209) – Victor Pozdnyakov Dec 17 '20 at 17:12
  • 1
    Thanks, I think that's got me on the right track. There's something wrong with my Gradle sync. I had an out of date SDK. – NZ1999 Dec 17 '20 at 17:21

2 Answers2

1

The root of my problem was an out of date SDK. This can be updated by searching for SDK Platform and following the instructions here:

Gradle sync failed: com.android.tools.idea.gradle.project.sync.idea.issues.SdkPlatformNotFoundException: Module: 'app' platform 'android-29' not found

Update that, select synch project with gradle files from the file menu, and you're good to go

NZ1999
  • 21
  • 5
0

Try to do invalidate Cache/ Restart. If this not work try out Sync Project With Gradle files

ahmad bajwa
  • 966
  • 2
  • 10
  • 30