My project was working very fine, but until one day, when I uploaded my project to github. I don\'t know if this issue is related to that but today when I compiled my androi
If you added the latest Facebook SDK or using + for Facebook dependency, revert to a previous version
compile 'com.facebook.android:facebook-android-sdk:4.16.1'
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
Extras Section
Then update your gradle file accordingly.
I had the same problem earlier today. Out of nowhere, I started having those weird error messages. Updating:
did the trick for me. Just go to Tools > Android > SDK Manager
in your Android Studio then find and update them. Good luck!
Just updating the Android support repository version to 25 did my work. Thanks to all of you for the guidance!
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.
If you try to remove facebook-sdk compile from dependencies will not show that error. So i think is facebook sdk error.
I was using 'com.facebook.android:facebook-android-sdk:[4,5)' but gives error, i tried this com.facebook.android:facebook-android-sdk:4.+ but is the same. But when i remove it app build successfully. Am i the only i came in this conclude and having the same problem ?