android studio 新建项目问题

移动开发 码拜 9年前 (2015-11-16) 824次浏览
真是无语了,下了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,连新建项目都出错还怎么玩
解决方案:10分
好像将api版本调高就可以
解决方案:140分
改下build.gradle文件,将里面的compileSdkVersion改为23即可

CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明android studio 新建项目问题
喜欢 (0)
[1034331897@qq.com]
分享 (0)