在Android演播室中使用FacebookSDK我跟着使用AndroidStudio的FacebookSDK用于Android..当我运行我的应用程序时,我会收到下面提到的警告。Gradle: module 'facebook' won't be compiled. Unfortunately you can't have non-Gradle Java module and Android-Gradle module in one project.我该怎么解决这个问题?我尝试了@ScottBarta的答案,得到了以下错误消息。 A problem occurred configuring project ':App'.> Failed to notify project evaluation listener.
> A problem occurred configuring project ':libraries:facebook'.
> Failed to notify project evaluation listener.
> Could not resolve all dependencies for configuration ':libraries:facebook:_DebugCompile'.
> Could not find any version that matches com.android.support:support-v4:+.
Required by:
MyApplication2.libraries:facebook:unspecified
3 回答
米琪卡哇伊
TA贡献1998条经验 获得超6个赞
在你的项目中 顶层建筑文件,添加Maven中央存储库。我的看上去是这样的: repositories { jcenter() // This is the default repo mavenCentral() // This is the Maven Central repo}
在 应用程序级建筑文件中,添加FacebookSDK依赖项: dependencies { compile 'com.facebook.android:facebook-android-sdk:4.5.0' // Adjust the version accordingly // All your other dependencies.}
- 3 回答
- 0 关注
- 338 浏览
添加回答
举报
0/150
提交
取消