Table of Contents

Build Error: Could Not Find Any Version for com.facebook.android

Build fails with the following output:

What went wrong:
Execution failed for task ':unityLibrary:generateReleaseRFile'.
> Could not resolve all files for configuration ':unityLibrary:releaseCompileClasspath'.
   > Could not find any version that matches com.facebook.android:facebook-applinks:[16.0,17).
     Versions that do not match:
       - 18.1.3
       - 17.0.2
     Required by:
         project :unityLibrary
   > Could not find any version that matches com.facebook.android:facebook-core:[16.0,17).
     Versions that do not match:
       - 18.1.3
       - 17.0.2
     Required by:
         project :unityLibrary
   > Could not find any version that matches com.facebook.android:facebook-gamingservices:[16.0,17).
     Versions that do not match:
       - 18.1.3
       - 17.0.2
     Required by:
         project :unityLibrary
   > Could not find any version that matches com.facebook.android:facebook-login:[16.0,17).
     Versions that do not match:
       - 18.1.3
       - 17.0.2
     Required by:
         project :unityLibrary

Solution

Please contact the support team to request an update to Facebook version 17.3.0 or later in your manifest.