Cordova の Androidプラグインをビルドした際のエラーに関するメモ
1.
“Unable to resolve dependency for ‘:@debug/compileClasspath’: Could not resolve project :CordovaLib. Could not resolve project :CordovaLib.”
以下の記事を参照して解消
2.
FAILURE: Build failed with an exception.
* Where:
Build file ‘D:\work\cordova\helloplugin\platforms\android\build.gradle’ line: 26
* What went wrong:
A problem occurred evaluating root project ‘android’.
> Could not find method google() for arguments [] on repository container.
このエラーはAndroidStudioではGradleのバージョンを4.4に変えると収まるが、Cordobaコマンドでプラグインを削除して追加すると元に戻ってしまう。
以下のリンクを参照して解消
https://stackoverflow.com/questions/37125496/cordova-build-changes-distributionurl-in-gradle-wrapper-properties-file
コメントを残す