Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
20 Views

Build Error: Plugin Facebook Connect failed to install.

Hello,

I cant build my app with facebook plugin, here the log:

Build Log
Building a Cordova 6.2.0 application.
Using platform cordova-ios 4.1.1.
The application name is "template"
The package name is "xdk.intel.cordova.template.lite"
Plugin "cordova-plugin-statusbar" (2.1.3) installed.
Plugin "cordova-plugin-device" (1.1.2) installed.
Plugin "cordova-plugin-splashscreen" (3.2.2) installed.
Error: Plugin Facebook Connect failed to install.

XDK version: 3641 and it's a fresh project.

Anyone here has same problem? Please give me some advice, thank you!

Tags (2)
0 Kudos
10 Replies
Highlighted
20 Views

Son -- did you install the facebook plugin using the plugin management tool on the Projects tab, via the "featured" plugins list?

0 Kudos
Highlighted
Beginner
20 Views

Paul -- yes,  I did.

Note that I create new project; this error happen on both Mac and Window. My project can build successful without XDK (I create a clone one with cordova)

Can you recheck it?

Thanks!

0 Kudos
Highlighted
20 Views

Can you provide the compile log?

0 Kudos
Highlighted
Beginner
20 Views

android same problem

BUILD FAILED

 

 

Build Log

  • Building a Cordova 6.2.0 application.
  • Using platform cordova-android 5.1.1.
  • The application name is "fbtest"
  • The package name is "kr.co.softpro.softsocial"
  • Preference android-signed set to true. Application will be signed.
  • Using Crosswalk Embedded 19
  • Plugin "cordova-plugin-statusbar" (2.1.3) installed.
  • Plugin "cordova-plugin-device" (1.1.2) installed.
  • Plugin "cordova-plugin-splashscreen" (3.2.2) installed.
  • Error: Plugin Facebook Connect failed to install.
  • Plugin "cordova-plugin-whitelist" (1.2.2) installed.
  • Plugin "cordova-plugin-crosswalk-webview" (1.8.0) installed.
0 Kudos
Highlighted
20 Views

Park -- we need the detailed build log. In the build tile there is a button that will provide that. Save it as a txt file and attach it to your post using the "Attach Files to Post" button, below the forum edit window:

Screen Shot 2016-11-11 at 8.53.38 AM.png

0 Kudos
Highlighted
Beginner
20 Views

1. ADD PLUGIN

step1.png

2. plugin add success

step2.png

3. build android

 

step3.png

4. build fail

step4.png

5. my log

step5.png

step6.png

0 Kudos
Highlighted
20 Views

park m. wrote:

1. ADD PLUGIN

step1.png

See the note at the very beginning of the facebook plugin > 'This plugin requires that you set the "Minimum Android API level to 15" for a successful build.'

Did you set the "Minimum Android API level" to 15 in your Build Settings on the Projects tab?

0 Kudos
Highlighted
Beginner
20 Views

sure

step7.png

0 Kudos
Highlighted
20 Views

Park -- I cannot figure out why your build is not working. I just tried doing a build with the facebook sample app and it successfully built. See the summary log, below:

Building a Cordova 6.2.0 application.
Using platform cordova-android 5.1.1.
The application name is "test-facebook"
The package name is "xdk.sample.facebookConnect"
Preference android-signed set to true. Application will be signed.
Using Crosswalk Embedded 19
Plugin "cordova-plugin-statusbar" (2.1.3) installed.
Plugin "cordova-plugin-device" (1.1.2) installed.
Plugin "cordova-plugin-splashscreen" (3.2.2) installed.
Plugin "cordova-plugin-facebook4" (1.7.4) installed.
Plugin "cordova-plugin-whitelist" (1.2.2) installed.
Plugin "cordova-plugin-crosswalk-webview" (1.8.0) installed.
App name updated to [test-facebook]
Updated "minSdkVersion" with "15"
Updated "targetSdkVersion" with "21"
Updated "installLocation" to "auto"
Updated "versionCode" to "1"
Updated "versionName" to "0.0.1"
Added "debuggable" to "false"

Same version of the Facebook plugin. Can you build that sample? Note that there is a problem in the sample's <project-name>.xdk file that expects to find an iOS mobile provisioning file. You can fix that by doing the following:

  • create a project based on the facebook plugin
  • close the xdk
  • open the <project-name>.xdk file in that new project, using a code editor, such as Brackets, Sublime, Notepad++, etc.
  • change the following lines:
        "iosProvs_": [
          {
            "relPath": "alldevice.mobileprovision",
            "type": "adhoc"
          }
        ],

to be like this

        "iosProvs_": [],

Make sure you pay attention to the commas.

  • save the changes to the <project-name>.xdk
  • open the XDK and build the sample
0 Kudos
Highlighted
20 Views

Paul F. (Intel) wrote:

Park -- we need the detailed build log. In the build tile there is a button that will provide that. Save it as a txt file and attach it to your post using the "Attach Files to Post" button, below the forum edit window:

Screen Shot 2016-11-11 at 8.53.38 AM.png

0 Kudos