我尝试使用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
我似乎无法追踪这一个。看起来熟悉?
答案 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
。