错误在Cordova中构建Android:未指定需要?

时间:2016-06-01 23:46:18

标签: android cordova

我尝试使用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

我似乎无法追踪这一个。看起来熟悉?

2 个答案:

答案 0 :(得分:0)

很抱歉,如果这应该是评论,但我还没有足够的分数。

请尝试在Android Support Repository

中安装Android SDK Manager

然后检查是否有效

cordova build android --verbose

如果成功,

cordova run android --verbose

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

答案 1 :(得分:0)

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