Henok Tesfaye
Henok Tesfaye

Reputation: 9570

Android studio 3.4.2 unresolved reference android.os.Bundle

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

Upvotes: 2

Views: 3171

Answers (2)

Bryan Neuberger
Bryan Neuberger

Reputation: 208

I was able to resolve this by following these steps:

  1. Delete the .idea folder
  2. File -> Invalidate caches and restart.

Upvotes: 0

Henok Tesfaye
Henok Tesfaye

Reputation: 9570

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

Upvotes: 1

Related Questions