I am getting this strange error on the first line of each file in my Android Studio. Everything was OK until I updated my Android Studio. Could someone explain to me what's going on and how to get rid of such error? I'd appreciate any help with it.
P.S: Despite this error, I can compile and run my code successfully.
Navigate to “Appearance & Behavior” > “System Settings” > “Android SDK” and now you can see the SDK versions that were installed in the “API Level” and “Name” columns (focus on “API Level”).
Open the Preferences window by clicking File > Settings (on Mac, Android Studio > Preferences). In the left panel, click Appearance & Behavior > System Settings > Updates. Be sure that Automatically check for updates is checked, then select a channel from the drop-down list (see figure 1). Click Apply or OK.
Update your android sdk platform-tools to the revision 23.0.1 from sdk manager. In android studio click File->Invalidate Caches/Restart...
That's it. The error must be gone now.
Like the error says, the Platform-tools needs to be on a newer version. To update,
SDK manager
Launch Standalone SDK Manager
-> Rev will be 23.01 File -> Invalidate caches/Restart"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With