无法完成Gradle Build,链接引用失败

Orc*_*cha 6 android android-gradle-plugin

我下载了一个包含3个模块的项目,在尝试构建它之后,我从gradlew assembleDebug中获取以下内容 - 扫描:

无法处理资源,请参阅上面的aapt输出以获取详细信息.

问题是,据我所知,在build文件夹中的values.xml文件中,这意味着我无法更改它.我究竟做错了什么?.

>error: style attribute '@android:attr/windowBackground' not found.
Message{kind=ERROR, text=error: style attribute '@android:attr/windowBackground' not found., sources=[C:\Users\Charorfa\Downloads\atlas-contentcollector-forgroup\ATLASContentCollector\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:253], original message=, tool name=Optional.of(AAPT)}

>error: style attribute '@android:attr/textColor' not found.
Message{kind=ERROR, text=error: style attribute '@android:attr/textColor' not found., sources=[C:\Users\Charorfa\Downloads\atlas-contentcollector-forgroup\ATLASContentCollector\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:254], original message=, tool name=Optional.of(AAPT)}
Run Code Online (Sandbox Code Playgroud)

同步它说

配置'compile'已经过时,已被'implementation'取代.它将在2018年底删除

但我认为这更像是一个警告,而不是一个错误.

我也发现了这个,但我不知道它是否能帮助我

错误:链接引用失败. - > QueuedJob

ישו*_*ותך 2

这可能是因为您尝试为您的样式使用不存在的属性:

@android:attr/windowBackground
Run Code Online (Sandbox Code Playgroud)

@android:attr/textColor
Run Code Online (Sandbox Code Playgroud)

相反,您需要使用以下样式的android:windowBackgroundand like :android:textColor

  <style name="DontCopyMyStyle" parent="AppTheme">
    <item name="android:windowBackground">@android:color/black</item>
    <item name="android:textColor">@android:color/white</item>
  </style>
Run Code Online (Sandbox Code Playgroud)