【问题标题】:Error build Android in Cordova: Unspecified required by?在 Cordova 中构建 Android 时出错:未指定?
【发布时间】:2016-10-01 12:32:52
【问题描述】:

我正在尝试使用 cordova run android 在 Cordova 5.4 中构建我的应用程序。我得到了这个:

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugCompile'.
   > Could not find any version that matches com.android.support:support-v4:+.
     Searched in the following locations:
         https://repo1.maven.org/maven2/com/android/support/support-v4/maven-metadata.xml
         https://repo1.maven.org/maven2/com/android/support/support-v4/
     Required by:
         :android:unspecified

我似乎无法找到这个。看起来熟悉?

【问题讨论】:

标签: android cordova


【解决方案1】:

在您的项目构建路径中检查android-support-v4.jar

【讨论】:

    【解决方案2】:

    对不起,如果这应该是评论,但我还没有足够的积分。

    请尝试在Android SDK Manager中安装Android Support Repository

    然后检查这是否有效

    cordova build android --verbose
    

    如果成功了,

    cordova run android --verbose
    

    来源: https://github.com/AzureAD/azure-activedirectory-library-for-cordova/issues/6

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-08-01
      • 2016-09-19
      • 1970-01-01
      • 1970-01-01
      • 2016-05-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多