I implemented Facebook link using phonegap-facebook-plugin in monaca, but I also needed app invitation function, so I tried to replace it with cordova-plugin-facebook4 which can use appInvite.
As a result, the build on ios is easy to pass, but the build on andoroid is no longer possible.
Remove this plug-in as a trial and the build will pass.
Cordova version:
CLI version: 5.2.0
ios platform:3.9.1
Android Platform: 4.1.1
The following error excerpts
*What was wrong:
A problem occurred configuring root project & apos; android & apos; .
&Could not resolve all dependencies for configuration':_debugCompile'.
&Could not find com.android.support:support-v4:23.2.1.
Searched in the following locations:
https://repo1.maven.org/maven2/com/android/support/support-v4/23.2.1/support-v4-23.2.1.pom
https://repo1.maven.org/maven2/com/android/support/support-v4/23.2.1/support-v4-23.2.1.jar
file: /Applications/android-sdk-macosx/extras/android/m2 repository/com/android/support/support-v4/23.2.1/support-v4-23.2.1.pom
file: /Applications/android-sdk-macosx/extras/android/m2 repository/com/android/support/support-v4/23.2.1/support-v4-23.2.1.jar
file: /Applications/android-sdk-macosx/extras/google/m2 repository/com/android/support/support-v4/23.2.1/support-v4-23.2.1.pom
file: /Applications/android-sdk-macosx/extras/google/m2 repository/com/android/support/support-v4/23.2.1/support-v4-23.2.1.jar
Required by:
—android:unspecified>com.android.support:appcompat-v7:22.2.1
&Could not find com.android.support:support-v4:23.2.1.
Searched in the following locations:
https://repo1.maven.org/maven2/com/android/support/support-v4/23.2.1/support-v4-23.2.1.pom
https://repo1.maven.org/maven2/com/android/support/support-v4/23.2.1/support-v4-23.2.1.jar
file: /Applications/android-sdk-macosx/extras/android/m2 repository/com/android/support/support-v4/23.2.1/support-v4-23.2.1.pom
file: /Applications/android-sdk-macosx/extras/android/m2 repository/com/android/support/support-v4/23.2.1/support-v4-23.2.1.jar
file: /Applications/android-sdk-macosx/extras/google/m2 repository/com/android/support/support-v4/23.2.1/support-v4-23.2.1.pom
file: /Applications/android-sdk-macosx/extras/google/m2 repository/com/android/support/support-v4/23.2.1/support-v4-23.2.1.jar
Required by:
:android:unspecified>com.facebook.android:facebook-android-sdk:4.11.0
&Could not find com.android.support:cardview-v7:23.2.1.
Searched in the following locations:
https://repo1.maven.org/maven2/com/android/support/cardview-v7/23.2.1/cardview-v7-23.2.1.pom
https://repo1.maven.org/maven2/com/android/support/cardview-v7/23.2.1/cardview-v7-23.2.1.jar
file: /Applications/android-sdk-macosx/extras/android/m2 repository/com/android/support/cardview-v7/23.2.1/cardview-v7-23.2.1.pom
file: /Applications/android-sdk-macosx/extras/android/m2 repository/com/android/support/cardview-v7/23.2.1/cardview-v7-23.2.1.jar
file: /Applications/android-sdk-macosx/extras/google/m2 repository/com/android/support/cardview-v7/23.2.1/cardview-v7-23.2.1.pom
file: /Applications/android-sdk-macosx/extras/google/m2 repository/com/android/support/cardview-v7/23.2.1/cardview-v7-23.2.1.jar
Required by:
:android:unspecified>com.facebook.android:facebook-android-sdk:4.11.0
&Could not find com.android.support:customtabs:23.2.1.
Searched in the following locations:
https://repo1.maven.org/maven2/com/android/support/customtabs/23.2.1/customtabs-23.2.1.pom
https://repo1.maven.org/maven2/com/android/support/customtabs/23.2.1/customtabs-23.2.1.jar
file: /Applications/android-sdk-macosx/extras/android/m2 repository/com/android/support/customtabs/23.2.1/customtabs-23.2.1.pom
file: /Applications/android-sdk-macosx/extras/android/m2 repository/com/android/support/customtabs/23.2.1/customtabs-23.2.1.jar
file: /Applications/android-sdk-macosx/extras/google/m2 repository/com/android/support/customtabs/23.2.1/customtabs-23.2.1.pom
file: /Applications/android-sdk-macosx/extras/google/m2 repository/com/android/support/customtabs/23.2.1/customtabs-23.2.1.jar
Required by:
:android:unspecified>com.facebook.android:facebook-android-sdk:4.11.0
I can't find the gradle file that was in phonegap-facebook-plugin, is this the reason?
I would appreciate it if you could lend me your wisdom.
Although it has been quite a while, this plug-in can run in environments with an AndroidSDK version of 25.However, monaca only supports up to 23 so it is not available.
The phonegap-facebook-plugin is no longer available due to the update on the fb side, so it would be better to give up using the fb plug-in in monaca and proceed with the development in another environment.Too bad...
© 2024 OneMinuteCode. All rights reserved.