Android Studio Palette已停用

时间:2015-06-02 07:53:06

标签: android android-studio palette

我从没看到过,但是我的调色板没有出现,我做了一些关于它的搜索,他们说:"重启项目",但我没有' ;当我进入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.

3 个答案:

答案 0 :(得分:4)

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

enter image description here

所以你必须伸展它

答案 1 :(得分:2)

您可以导航到窗口/恢复默认布局,将布局恢复为默认值:

Window/Restore Default Layout

答案 2 :(得分:0)

我想出了同样的问题。经过很多麻烦后,我可以用Window修复它 - >恢复默认布局(Shift + F12)。它使调色板和组件树再次可见。