Cordova の Androidプラグインをビルドした際のエラーについてのメモ

Cordova の Androidプラグインをビルドした際のエラーに関するメモ

1.

“Unable to resolve dependency for ‘:@debug/compileClasspath’: Could not resolve project :CordovaLib. Could not resolve project :CordovaLib.”

以下の記事を参照して解消

https://stackoverflow.com/questions/47023068/unable-to-run-ionic-app-after-update-to-android-studio-3-0

 

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

 

コメントを残す

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください