【发布时间】:2018-01-08 21:49:12
【问题描述】:
我是 android studio 和 java 的新手。 你能给我一些建议如何解决这些错误吗?我正在使用较旧的 android studio,因为我正在关注教程,这个人有这个版本,所以为了让它尽可能简单,我试图保持在同一个版本 (1.0.0)
编辑:我无法发布图片,所以我将在此处粘贴错误代码行。
Gradle
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
Error:(1) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.
Error:Execution failed for task ':app:processDebugResources'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command C:\Users\sh4rp_000\AppData\Local\Android\sdk1\build-tools\21.1.2\aapt.exe'' finished with non-zero exit value 1
我的配置:
编译 SDK 版本:API 21:Android 5.0 (Lollipop)
构建工具版本:21.1.2
虚拟设备
我无法创建虚拟设备,因为提到的错误,我无法进入“创建”屏幕。
【问题讨论】:
-
请阅读Why not to upload images of code on SO when asking a question?,然后相应地编辑您的问题。
-
您能否提供有关虚拟设备的更多详细信息?
-
要么使用运行良好且不那么麻烦的 Geny Motion Emulator,要么升级 Android Studio,因为该问题可能会在较新版本中得到解决,如果您遵循旧教程,这不是什么大问题。在您使用相同的 Android SDK 和 API 之前,您的代码将正常工作
-
究竟是什么时候收到这个错误的?
-
@ZeusInTexas 当我点击小播放按钮并在大约 10 秒后失败。
标签: java android device virtual