Unity Facebook SDK export Android studio, gradle build error No Resource found

Hi,

In empty project i import facebook unity sdk (from official facebook site).

Then i make Build apk with test scene (facebook sdk test scene) and instal on device - all run good.

But when i try export to andorid project and import it to Android studio i get error on gradle build:

"No resource identifier found for attribute ‘cardElevation’ in package ‘com.facebook’ "

Unity version 5.3.5f1
Android sdk: 23

@Shadowagv , I have same issue.
did you solve this?

Same issue here, any solution?

I solved this problem this way:

  • In Android Studio, open the build.gradle of the facebookandroidsdkXXX project
  • In dependencies, add this code compile project(':cardviewvXXXX'). Just replace the XXX by the corresponding digits.

Now if you build, the error should be gone :slight_smile:

Hi, after I put ‘compile project (’: cardviewvXXXX ‘)’ in the build.grandle of the facebookandroidsdkXXX project.

I get the following error:
" Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files define Landroid / support / v7 / cardview / BuildConfig; "

Any solution?
Thanks