相关疑难解决方法(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 2.3后,android-apt的插件不兼容

从2.2升级到2.3后,我看到了这个警告

在此输入图像描述

当我尝试编译项目时,我看到了这个编译错误

在此输入图像描述

如何在不降级到之前的gradle版本的情况下解决此问题?是否有任何更新的android-apt可以解决这个问题?

android gradle android-studio android-apt

97
推荐指数
4
解决办法
7万
查看次数

Android Studio 3.0编译问题(无法在配置之间进行选择)

最新3.0版本(Beta 2)的问题我的项目由第三方有1个子模块,所以我只能访问他们的build.gradle.

我的项目有3种口味,snap,uat,production.每个都有2种构建类型,调试和发布.当我尝试构建时,我得到了这个.

Error:Cannot choose between the following configurations of project :lp_messaging_sdk:
  - debugApiElements
  - debugRuntimeElements
  - releaseApiElements
  - releaseRuntimeElements
All of them match the consumer attributes:
  - Configuration 'debugApiElements':
      - Found com.android.build.api.attributes.BuildTypeAttr 'debug' but wasn't required.
      - Found com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' but wasn't required.
      - Found com.android.build.gradle.internal.dependency.VariantAttr 'debug' but wasn't required.
      - Found org.gradle.api.attributes.Usage 'java-api' but wasn't required.
  - Configuration 'debugRuntimeElements':
      - Found com.android.build.api.attributes.BuildTypeAttr 'debug' but wasn't required.
      - Found com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' but wasn't required.
      - Found com.android.build.gradle.internal.dependency.VariantAttr 'debug' but …
Run Code Online (Sandbox Code Playgroud)

android project gradle android-studio

60
推荐指数
3
解决办法
4万
查看次数

在ImageView之后显示TextView

我想在TextView之后显示ImageView但是现在正在我的Android屏幕上显示文字.

布局:

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="in.sitemakers.sitemakers.AboutFragment">

<ImageView
    android:id="@+id/about_image"
    android:src="@drawable/sitemakers_laptops"
    android:layout_width="match_parent"
    android:scaleType="fitXY"
    android:layout_height="420dp" />

<TextView
    android:layout_below="@+id/about_image"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:text="Site Makers is the web development company engage in the.."
    />

</FrameLayout>
Run Code Online (Sandbox Code Playgroud)

预习

请看上面的截图,并帮助我XML以这样的方式更新我,以便TextView将来ImageView.

android textview imageview android-layout

5
推荐指数
1
解决办法
722
查看次数