gpt4 book ai didi

Android Studio 调色板被禁用

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:36:44 28 4
gpt4 key购买 nike

我不知道从什么时候开始,但我的调色板没有出现,我做了一些搜索,他们说:“重新启动项目”,但我不知道为什么当我进入 View >>工具窗口,调色板被禁用:

Show menu where palette is disabled

我也做了一个更新,看看它是否出现但没有。Logcat 说:

0 warnings.
0 errors.

控制台:

Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
AGPBI: {"kind":"ERROR","text":"Resource id cannot be an empty string (at \u0027id\u0027 with value \u0027@+id/\u0027).","sourcePath":"C:\\Users\\...\\AndroidStudioProjects\\Solutis\\app\\src\\main\\res\\layout\\activity_contact.xml","position":{"startLine":7,"startColumn":17,"startOffset":308,"endColumn":22,"endOffset":313},"original":""}


FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\...\AppData\Local\Android\Sdk\build-tools\22.0.1\aapt.exe'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

最佳答案

我发现了很多关于这个问题的帖子,我找到了原因,调色板没有被禁用,它被激活但是它隐藏在这里:

enter image description here

所以你只需要拉伸(stretch)它

关于Android Studio 调色板被禁用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30590398/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com