Android Studio 调色板已禁用
Android Studio Palette is disabled
我不知道从什么时候开始,但我的调色板没有出现,我做了一些搜索,他们说:"Restart the project",但我不知道为什么当我进入视图时>> 工具 Windows,调色板已禁用:
我也更新了,想看看有没有出现,但是没有。
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.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.
我发现很多 post 都有这个问题,我找到了原因,调色板没有被禁用,它被激活但隐藏在这里:
所以你只需要拉伸它
我遇到了同样的问题。在经历了很多麻烦之后,我可以使用 Window -> 恢复默认布局 (Shift+F12) 来修复它。它使调色板和组件树再次可见。
您可以通过导航到 Window/Restore 默认布局:
将布局恢复为默认
我不知道从什么时候开始,但我的调色板没有出现,我做了一些搜索,他们说:"Restart the project",但我不知道为什么当我进入视图时>> 工具 Windows,调色板已禁用:
我也更新了,想看看有没有出现,但是没有。 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.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.
我发现很多 post 都有这个问题,我找到了原因,调色板没有被禁用,它被激活但隐藏在这里:
所以你只需要拉伸它
我遇到了同样的问题。在经历了很多麻烦之后,我可以使用 Window -> 恢复默认布局 (Shift+F12) 来修复它。它使调色板和组件树再次可见。
您可以通过导航到 Window/Restore 默认布局:
将布局恢复为默认