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? 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? android android

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

  1. Android SDK Tool

  2. Android SDK Platform-Tools

  3. Android SDK Build tool

Android 7.1.1 (API 25) section

  1. SDK Platform

Extras Section

  1. Android Support Repository
  2. 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:

  1. Android SDK Tool
  2. Android SDK Platform-Tools
  3. Android SDK Build tool
  4. 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!