Wizcorp / phonegap-facebook-plugin

The official plugin for Facebook in Apache Cordova/PhoneGap
Other
1.91k stars 2k forks source link

Phonegap repository off - "FacebookLib does not exist error" when building to android #1332

Closed mateusredfield closed 7 years ago

mateusredfield commented 8 years ago

Phonegap open repository no longers exists. And when I do on config.xml:

<plugin spec="https://github.com/Wizcorp/phonegap-facebook-plugin.git" source="git" >
      <param name="APP_ID" value=<VALUE> />
      <param name="APP_NAME" value=<NAME> />
</plugin>

And building on build.phonegap it gives an error saying:

BUILD FAILED /android-sdk/tools/ant/build.xml:597: The following error occurred while executing this line: /project/phonegap-facebook-plugin/customer-FacebookLib/custom_rules.xml:4: /project/phonegap-facebook-plugin/customer-FacebookLib/ant-build does not exist.

Total time: 5 seconds

/project/cordova/node_modules/q/q.js:126 throw e; ^ Error code 1 for command: ant with args: release,-f,/project/build.xml

jmaicaaan commented 7 years ago

Hey mate did you solve this issue already? https://github.com/Wizcorp/phonegap-facebook-plugin/issues/1333

mateusredfield commented 7 years ago

After many tries one solution worked to me (although it caused a new flow in the code but its does not matter now). Just put the gradle under the phonegap version solved the problem.

<preference name="phonegap-version" value="cli-5.2.0" /> <preference name="android-build-tool" value="gradle" />

Anyway, thank you very much @jmaicaaan and @raymondtam.