简体   繁体   English

Android Studio-无法在虚拟设备上运行应用程序

[英]Android Studio - Unable to run application on virtual device

i am total newbie into android studio and java. 我是android studio和java的新手。 Could you give me some advice how to fix these errors? 您能给我一些建议来解决这些错误吗? I am using older android studio because of the tutorials I am following, the guy has this version so to keep it as simple as it can get, I am trying to stay on the same version (1.0.0) 由于正在使用的教程,我使用的是较旧的android studio,此人拥有此版本,因此为了使其尽可能简单,我尝试使用同一版本(1.0.0)

EDIT: I am unable to post pictures, so I will just paste the error code lines here. 编辑:我无法发布图片,所以我只会在这里粘贴错误代码行。

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

My configuration: 我的配置:

Compile Sdk Version: API 21: Android 5.0 (Lollipop) 编译SDK版本:API 21:Android 5.0(Lollipop)
Build tools version: 21.1.2 生成工具版本:21.1.2

Virtual device 虚拟装置

I was unable to create the virtual device, because I was unable to proceed to the "creation" screen, due to mentioned errors. 由于提到的错误,我无法进入“创建”屏幕,因此我无法创建虚拟设备。

Updating Android studio fixed the problem and didn't bring up any errors while following tutorial of older version android studio. 更新Android Studio可以解决此问题,并且在遵循旧版android studio的教程时也不会出现任何错误。

Thanks for all the help. 感谢您的所有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM