真是无语了,下了android studio 新建项目个项目就会出错,连个Hello world 都不给本人运行
D:\Android\project\MyApplication4\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””.
Error:(2) 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 “”D:\Android\SDK\build-tools\23.0.0\aapt.exe”””” finished with non-zero exit value 1
然后弹出 values-v23.xml 文件,估计红色地方的问题
<style name=”Base.TextAppearance.AppCompat.Widget.Button.Inverse” parent=”android:TextAppearance.Material.Widget.Button.Inverse“/>
<style name=”Base.Widget.AppCompat.Button.Colored” parent=”android:Widget.Material.Button.Colored“/>
关键这文件还不能改,百度了一晚上都搞不定,好想shi,连新建项目都出错还怎么玩
D:\Android\project\MyApplication4\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””.
Error:(2) 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 “”D:\Android\SDK\build-tools\23.0.0\aapt.exe”””” finished with non-zero exit value 1
然后弹出 values-v23.xml 文件,估计红色地方的问题
<style name=”Base.TextAppearance.AppCompat.Widget.Button.Inverse” parent=”android:TextAppearance.Material.Widget.Button.Inverse“/>
<style name=”Base.Widget.AppCompat.Button.Colored” parent=”android:Widget.Material.Button.Colored“/>
关键这文件还不能改,百度了一晚上都搞不定,好想shi,连新建项目都出错还怎么玩
解决方案:10分
好像将api版本调高就可以
解决方案:140分
改下build.gradle文件,将里面的compileSdkVersion改为23即可