嗯,一个在过去很好运作的项目。
在更新整个技术栈多个部分之后:
- Npm
- Node
- Cordova
- Android
现在,运行: cordova build
出现了以下错误:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
Could not resolve all dependencies for configuration ':_debugApk'.
A problem occurred configuring project ':CordovaLib'.
Could not resolve all dependencies for configuration ':CordovaLib:classpath'.
Could not find com.android.tools.build:gradle:2.2.2.
Searched in the following locations:
https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.2.2/gradle-2.2.2.pom
https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.2.2/gradle-2.2.2.jar
Required by:
android:CordovaLib:unspecified
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
当然,我已经尝试了“尝试”,但没有成功。
有趣的是,Android Studio可以毫无问题地构建。 如果需要,我也可以粘贴Gradle文件。
提前感谢。