相关疑难解决方法(0)

Android studio 3.0:无法解析依赖:app @ dexOptions/compileClasspath':无法解析项目:动画师

我迁移到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
 &#39;:app@dexOptions/compileClasspath&#39;: 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)

android-studio android-gradle-plugin android-studio-3.0

146
推荐指数
12
解决办法
23万
查看次数

Android Studio中的OpenCV

我想在Android Studio的应用程序中使用OpenCV库.我按照这里的说明,但我得到错误

未找到名称"default"的配置

有什么不对?

我使用带有gradle 2.2.1的Android Studio 1.0.

android opencv gradle android-studio

136
推荐指数
5
解决办法
18万
查看次数

apply plugin:'android'或者应用插件:'com.android.application'

在主题中.Gradle需要设置,plugin有时候提到它apply plugin: 'android',以及其他apply plugin: 'com.android.application'.

有什么区别?应该使用哪一个?

plugins android gradle android-studio

35
推荐指数
2
解决办法
3万
查看次数