将 facebook sdk 依赖项添加到 android studio 后 gradle 构建出错
Error in gradle build after adding facebook sdk dependency to android studio
我正在尝试在我的应用程序中使用 firebase 集成 Facebook 登录,但是当我添加依赖项时
compile 'com.facebook.android:facebook-login:[4,5)'
我在 gradle build
中遇到错误
Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
Error:(4) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.
文件 -> 项目结构 -> 应用程序 -> 依赖项
-> 删除(-) 'com.facebook.android:facebook-login:[4,5)'
-> 添加(+) 库依赖项-> search:facebook
-> 选择 'com.facebook.android:facebook-login:4.X.X' -> 确定!
尝试将所有 com.android.support
库编译到最新版本,并与 compileSdkVersion
和 targetSdkVersion
一样
对我有用
我正在尝试在我的应用程序中使用 firebase 集成 Facebook 登录,但是当我添加依赖项时
compile 'com.facebook.android:facebook-login:[4,5)'
我在 gradle build
中遇到错误Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
Error:(4) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.
文件 -> 项目结构 -> 应用程序 -> 依赖项
-> 删除(-) 'com.facebook.android:facebook-login:[4,5)'
-> 添加(+) 库依赖项-> search:facebook
-> 选择 'com.facebook.android:facebook-login:4.X.X' -> 确定!
尝试将所有 com.android.support
库编译到最新版本,并与 compileSdkVersion
和 targetSdkVersion
对我有用