No signature of method: xxx.android() is applicable for argument types

No signature of method: xxx.android() is applicable for argument types

モジュールレベルのbuild.gradleでassembleでエラーが発生しました。

No signature of method: xxx.android() is applicable for argument types

原因

原因は、namespaceを書いていたからでした。AGP7.0以降は、build.gradleに明示的に指定する事が推奨されています。が、AGP4.1.3でこの記述をしていたら構文として認識されないようでエラーとなってしまいました。

android {
  // ...
  namespace '~'
}

株式会社CONFRAGE ITソリューション事業部をもっと見る

今すぐ購読し、続きを読んで、すべてのアーカイブにアクセスしましょう。

続きを読む

タイトルとURLをコピーしました