2

When I create a new android project in android studio 3.4.2, the gradle build without error and runs successfully. But Android Studio shows 4 errors.

  1. Unresolved reference android.os.Bundle
  2. onCreate 'overrides' nothing
  3. super.onCreate , Cannot access class 'android.os.Bundle'. Check your module classpath for missing or conflicting dependencies

Error image

Henok Tesfaye
  • 8,287
  • 13
  • 47
  • 84

2 Answers2

1

My IDE autocomplete in xml files is not working too, so when I scour SO, I got one link that solves my problems. Here is the link Android Studio - XML Editor autocomplete not working with support libraries

Henok Tesfaye
  • 8,287
  • 13
  • 47
  • 84
0

I was able to resolve this by following these steps:

  1. Delete the .idea folder
  2. File -> Invalidate caches and restart.
Bryan Neuberger
  • 198
  • 2
  • 4