相关疑难解决方法(0)

在Android工作室使用facebook sdk

我正在使用Android Studio关注Facebook SDK for Android.当我运行我的应用程序时,我收到了下面提到的警告.

Gradle: module 'facebook' won't be compiled. Unfortunately you can't have non-Gradle Java module and Android-Gradle module in one project.
Run Code Online (Sandbox Code Playgroud)

我该怎么解决这个问题?

我尝试了@Scott Barta的回答,并收到以下错误消息.

    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
Run Code Online (Sandbox Code Playgroud)

android facebook facebook-android-sdk android-studio android-gradle-plugin

104
推荐指数
5
解决办法
15万
查看次数