Android Studio Suddenly started to display unable to resolve com.android.support...25.0.0 error messages and all of my java files are erroneous now?
Open your android SDK manager (from C:\Users\youruseraccount\AppData\Local\Android\sdk) and update following to latest versions in,
Tools section section
Android SDK Tool
Android SDK Platform-Tools
Android SDK Build tool
Android 7.1.1 (API 25) section
- SDK Platform
Extras Section
- Android Support Repository
- Android Support Library
Then update your gradle file accordingly.
Facebook updated their SDK to use the latest support libraries. You could replace
compile 'com.facebook.android:facebook-android-sdk:[4,5)'
with
compile 'com.facebook.android:facebook-android-sdk:4.16.1'
if you do not want to update your android sdk just yet.
I had the same problem earlier today. Out of nowhere, I started having those weird error messages. Updating:
- Android SDK Tool
- Android SDK Platform-Tools
- Android SDK Build tool
- Android Support Repository
did the trick for me. Just go to Tools > Android > SDK Manager
in your Android Studio then find and update them. Good luck!