gpt4 book ai didi

android - 添加 PhoneGap Build Android 要求

转载 作者:太空狗 更新时间:2023-10-29 16:00:21 25 4
gpt4 key购买 nike

所以我升级了我的 facebookConnectPlugin (cordova-plugin-facebook4/npmjs ) 以获得 iOS 支持,我的 iOS 构建现在正在编译 - 但现在我的 Android 没有。构建错误状态:

FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'project'.
> Could not resolve all dependencies for configuration ':_debugCompile'.
> Could not find com.android.support:support-v4:23.2.0.
Searched in the following locations:
https://repo1.maven.org/maven2/com/android/support/support-v4/23.2.0/support-v4-23.2.0.pom
https://repo1.maven.org/maven2/com/android/support/support-v4/23.2.0/support-v4-23.2.0.jar
file:/android-sdk/extras/android/m2repository/com/android/support/support-v4/23.2.0/support-v4-23.2.0.pom
file:/android-sdk/extras/android/m2repository/com/android/support/support-v4/23.2.0/support-v4-23.2.0.jar
file:/android-sdk/extras/google/m2repository/com/android/support/support-v4/23.2.0/support-v4-23.2.0.pom
file:/android-sdk/extras/google/m2repository/com/android/support/support-v4/23.2.0/support-v4-23.2.0.jar
Required by:
:project:unspecified > com.facebook.android:facebook-android-sdk:4.10.1
> Could not find com.android.support:cardview-v7:23.2.0.
Searched in the following locations:
https://repo1.maven.org/maven2/com/android/support/cardview-v7/23.2.0/cardview-v7-23.2.0.pom
https://repo1.maven.org/maven2/com/android/support/cardview-v7/23.2.0/cardview-v7-23.2.0.jar
file:/android-sdk/extras/android/m2repository/com/android/support/cardview-v7/23.2.0/cardview-v7-23.2.0.pom
file:/android-sdk/extras/android/m2repository/com/android/support/cardview-v7/23.2.0/cardview-v7-23.2.0.jar
file:/android-sdk/extras/google/m2repository/com/android/support/cardview-v7/23.2.0/cardview-v7-23.2.0.pom
file:/android-sdk/extras/google/m2repository/com/android/support/cardview-v7/23.2.0/cardview-v7-23.2.0.jar
Required by:
:project:unspecified > com.facebook.android:facebook-android-sdk:4.10.1

这在他们的 issues list 中有所描述这个存储库(22 天前打开)的 pull request这解释了他们的修复(2 天前)。

我使用的是 6.0.0 的 CLI 版本。任何人都可以建议我可以尝试的其他方法。

编辑:我只升级到 cli 6.0.0,因为我看到它是最近发布的,并且认为它可能具有所需的依赖项 - 我稍后会尝试 5.4 和 5.2。

编辑:关于你的问题,Jesse;

  1. 这是您的第一个混合应用程序吗?是的
  2. 您使用的是桌面应用程序吗?没有
  3. 您的目标平台及其目标版本是什么:Android 4、5、6? iOS 7、8、9? Android 4.4+(用于 websocket 支持),iOS 7+
  4. 您使用的是 CLI、SDK 还是 Build?构建 - 即确认我通过 build.phonegap.com 完成所有操作。
  5. 您是否尝试过与插件的作者沟通?不,但这绝对是我接下来要做的。

最佳答案

我从昨天开始就遇到了同样的问题。我的解决方案是通过 SDK 管理器更新 Android 支持库(提示:以管理员身份运行它,否则它不会为我更新任何东西。)

enter image description here

关于android - 添加 PhoneGap Build Android 要求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36213891/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com