[BUG]Android resource linking failed
- Lingua principale
- Java
- Stelle
- 6.3k
- Fork
- 1.3k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
**Describe the bug / 问题描述**
A clear and concise description of what the bug is. / 相关问题的描述
无法编译成功,报错如下:
`3: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':common:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> 1 exception was raised by workers:
com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
/Users/freeman/innova/SoloPi-0.11.1/src/common/src/main/res/values/styles.xml:17:5-35:13: AAPT: error: style attribute 'attr/colorPrimary (aka com.alipay.hulu.common:attr/colorPrimary)' not found.
/Users/freeman/innova/SoloPi-0.11.1/src/common/src/main/res/values/styles.xml:17:5-35:13: AAPT: error: style attribute 'attr/colorPrimaryDark (aka com.alipay.hulu.common:attr/colorPrimaryDark)' not found.
/Users/freeman/innova/SoloPi-0.11.1/src/common/src/main/res/values/styles.xml:17:5-35:13: AAPT: error: style attribute 'attr/colorAccent (aka com.alipay.hulu.common:attr/colorAccent)' not found.
/Users/freeman/innova/SoloPi-0.11.1/src/common/src/main/res/values/styles.xml:17:5-35:13: AAPT: error: style attribute 'attr/windowMinWidthMajor (aka com.alipay.hulu.common:attr/windowMinWidthMajor)' not found.
/Users/freeman/innova/SoloPi-0.11.1/src/common/src/main/res/values/styles.xml:17:5-35:13: AAPT: error: style attribute 'attr/windowMinWidthMinor (aka com.alipay.hulu.common:attr/windowMinWidthMinor)' not found.`
**To Reproduce / 复现流程**
Steps to reproduce the behavior: / 问题重现流程
1. 使用cmake 6.3,安装好ndk以及gradle
2. 在src目录下,执行 gradle clean; gradle build
If possible, please use video to reproduce the behavior / 可以的话,录一个问题重现的视频
**Error Stack/错误堆栈**
Error stacks related to this bug. You can find this in `/sdcard/solopi/error` and `/sdcard/Android/data/com.alipay.hulu/cache/logs/` / 与问题相关的错误堆栈。你可以在 `/sdcard/solopi/error` 和 `/sdcard/Android/data/com.alipay.hulu/cache/logs/` 找到。
**Screenshots / 截图**
If applicable, add screenshots to help explain your problem. / 最好能够附上相关问题的截图信息。

**Device Info / 设备信息**
- Manufacturer/生产厂家: [e.g. Huawei]
- Device/设备: [e.g. Huawei P30]
- OS/系统版本: [e.g. Android 9.0]
- CPU Structure/CPU架构: [e.g. arm64 v8a]
- SoloPi Version/SoloPi版本 [e.g. 0.9.2]
**Additional context/其他内容**
Add any other context about the problem here. / 其他与问题相关的内容
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.