I've always programmed Android with Eclipse and decided to start migrating to Android Studio .
(我一直使用Eclipse对Android进行编程,并决定开始迁移到Android Studio 。)
I decided to use the same SDK I already had for Eclipse, then: (我决定使用与Eclipse相同的SDK,然后:)
- Started a new project
(开始一个新项目)
- Set minimum SDK 4.0 (API Level 14)
(设置最低SDK 4.0(API级别14))
- Choose Blank Activity option
(选择空白活动选项)
- Used Default names for Activity Name and Layout Name
(活动名称和布局名称使用的默认名称)
- Hit Finish
(击中完成)
After a few seconds Gradle finishes the build, and it throws me two errors with the following messages in file Teste4\app\build\intermediates/exploded-aar\com.android.support\appcompat-v7\23.0.0\res\values-v23\values-v23.xml:
(几秒钟后,Gradle完成了构建,并且在文件Teste4 \ app \ build \ intermediates / exploded-aar \ com.android.support \ appcompat-v7 \ 23.0.0 \ res \ values中,以下消息引发了两个错误-v23 \ values-v23.xml:)
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
(错误:(2)检索项目的父项时出错:未找到与给定名称'android:TextAppearance.Material.Widget.Button.Inverse'相匹配的资源。)
Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.
(错误:(2)检索项目的父项时出错:未找到与给定名称'android:Widget.Material.Button.Colored'相匹配的资源。)
Under File -> Project Structure -> Modules: app (left column) -> Properties tab , I have the following versions set up:
(在文件->项目结构->模块:应用程序(左列)->属性标签下 ,我设置了以下版本:)
What should I do in order to fix this?
(为了解决这个问题我该怎么办?)
I already tried what was suggested in Stack Overflow question appcompat-v7:21.0.0': No resource found that matches the given name: attr 'android:actionModeShareDrawable' , but it didn't work.
(我已经尝试过在堆栈溢出问题appcompat-v7:21.0.0'中建议的内容:没有找到与给定名称匹配的资源:attr'android:actionModeShareDrawable' ,但是没有用。)
ask by Vini.g.fer translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…