com.android.applicationとcom.android.libraryを取り違えると.BuildTypeAttr 'debug' and found compatible value 'debug'.で死ぬ

またやってしまった…

Androidでライブラリのモジュールを作るにはbuild.gradleで頭の

apply plugin: 'com.android.application'

apply plugin: 'com.android.library'

に変えればいいのだが、

適当にプラグインをコピペするとapplicationに戻ったりしてこんな感じでビルドが失敗する

Error:Unable to resolve dependency for ':fehbs@debug/compileClasspath': Could not resolve project :reposroom.
<a href="openFile:C:/ols/gdx/fehs/fehbs/build.gradle">Open File</a><br><a href="Unable to resolve dependency for &#39;:fehbs@debug/compileClasspath&#39;: Could not resolve project :reposroom.">Show Details</a>

 

Show Detailsの中身:

Unable to resolve dependency for ':fehbs@debug/compileClasspath': Could not resolve project :reposroom.

Could not resolve project :reposroom.
Required by:
project :fehbs
> Unable to find a matching configuration of project :reposroom:
- Configuration 'debugApiElements':
- Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found compatible value 'debug'.

 

今日はもう寝よう…