Software Archive
Read-only legacy content
17061 ディスカッション

Build Error: Plugin Facebook Connect failed to install.

son_n_
ビギナー
1,390件の閲覧回数

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!

0 件の賞賛
10 返答(返信)
PaulF_IntelCorp
従業員
1,390件の閲覧回数

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

son_n_
ビギナー
1,390件の閲覧回数

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!

Jerroyd_M_Intel
従業員
1,390件の閲覧回数

Can you provide the compile log?

park_m_
ビギナー
1,390件の閲覧回数

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.
PaulF_IntelCorp
従業員
1,390件の閲覧回数

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

park_m_
ビギナー
1,390件の閲覧回数

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

PaulF_IntelCorp
従業員
1,390件の閲覧回数

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?

park_m_
ビギナー
1,390件の閲覧回数

sure

step7.png

PaulF_IntelCorp
従業員
1,390件の閲覧回数

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
PaulF_IntelCorp
従業員
1,390件の閲覧回数

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

返信