繁体   English   中英

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

[英]Error build Android in Cordova: Unspecified required by?

我正在尝试使用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 SDK Manager安装Android Support Repository

然后检查这是否有效

cordova build android --verbose

如果成功的话

cordova run android --verbose

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM