2017-08-01 246 views
0

我是android studio和java的新手。 你能给我一些建议如何解决这些错误?我正在使用较旧的android工作室,因为我遵循的教程,这家伙有这个版本,以便保持它尽可能简单,我试图保持在相同的版本(1.0.0)Android Studio - 无法在虚拟设备上运行应用程序

编辑:我无法发布图片,因此我只需在此处粘贴错误代码行。

摇篮

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(棒棒堂)
编译工具版本:21.1.2

虚拟设备

我无法创建虚拟设备,因为由于提到的错误,我无法进入“创建”屏幕。

+0

请阅读[为什么不在上传图片的代码时提问?](https://meta.stackoverflow.com/questions/285551/why-not-to-upload-images-of-code-在问什么时候问),然后相应地编辑你的问题。 –

+0

你能提供关于虚拟设备的更多细节吗? – ZeusInTexas

+0

要么使用Geny Motion Emulator,它可以正常工作并且不需要麻烦或者升级Android Studio,因为问题可能会在更新的版本中得到解决。如果您遵循旧的教程,这不是一个大问题。你的代码会正常工作,直到你使用相同的android SDK和API的 – Pheonix

回答

0

更新Android工作室解决了这个问题,并没有提出任何错误,而遵循老版本的android studio的教程。

感谢您的帮助。

相关问题