我迁移到Android studio 3.0.因此,项目无法编译名为":animator"的模块,它会显示以下错误:
Error:Unable to resolve dependency for
':app@dexOptions/compileClasspath': Could not resolve project
:animators. <a
href="openFile:/home/mobilepowered/MobilePowered/MyInnovalee/trunk17-10-2017/app/build.gradle">Open
File</a><br><a href="Unable to resolve dependency for
':app@dexOptions/compileClasspath': Could not resolve project
:animators.">Show Details</a>
Run Code Online (Sandbox Code Playgroud)
并显示详细信息提供此日志:
Unable to resolve dependency for ':app@dexOptions/compileClasspath':
Could not resolve project :animators.
Could not resolve project :animators. Required by:
project :app
Unable to find a matching configuration of project :animators:
- Configuration 'debugApiElements':
- Required com.android.build.api.attributes.BuildTypeAttr 'dexOptions' and found incompatible value 'debug'.
- Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and
found compatible value 'Aar'. …Run Code Online (Sandbox Code Playgroud) 在主题中.Gradle需要设置,plugin有时候提到它apply plugin: 'android',以及其他apply plugin: 'com.android.application'.
有什么区别?应该使用哪一个?