简体   繁体   English

由于Facebook SDK无法编译Gradle项目

[英]Can not compile gradle project because of facebook sdk

Try to integrate facebook sdk in my app, add maven in build.gradle 尝试将facebook sdk集成到我的应用中,在build.gradle中添加maven
repositories { mavenCentral() }

and sdk 和SDK

compile 'com.facebook.android:facebook-android-sdk:4.8.2'

and while build project i got 而当我建立项目时

Error:cannot access Utility$3
  bad class file: pocket-android1\generic\hotelClient\build\intermediates\exploded-aar\com.facebook.android\facebook-android-sdk\4.8.1\jars\classes.jar(com/facebook/internal/Utility$3.class)
Please remove or make sure it appears in the correct subdirectory of the classpath.

I don't know if it will help but try compiling another version of Facebook SDK. 我不知道这是否有帮助,但请尝试编译另一个版本的Facebook SDK。 For example, 4.7.0. 例如,4.7.0。 I have no problem with that one. 我对此没问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM