android studio 新建项目问题

qq_26945233 2015-08-19 10:58:49
真是无语了,下了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,连新建项目都出错还怎么玩
...全文
12960 16 打赏 收藏 转发到动态 举报
写回复
用AI写文章
16 条回复
切换为时间正序
请发表友善的回复…
发表回复
哈哈gogo 2019-09-21
  • 打赏
  • 举报
回复
感觉一点不好用
丫米乐园 2016-02-19
  • 打赏
  • 举报
回复
什么都不用动,是你的布局文件或者资源文件出现问题了
CoreSword_ 2015-11-14
  • 打赏
  • 举报
回复
引用 4 楼 comeheress 的回复:
改下build.gradle文件,将里面的compileSdkVersion改为23即可
解决了
cool_delete 2015-09-05
  • 打赏
  • 举报
回复

1.32版也有这个问题 保持这三个数一致就行了 原因我也不知道
向阳&花开 2015-09-01
  • 打赏
  • 举报
回复
mac 端的1.3.2 版本还是 存在这个问题,请指导解决
wattery 2015-08-26
  • 打赏
  • 举报
回复
这个是Android Studio 1.3.1 的一个bug ,最新的版1.3.2已经解决了,我也折腾了一周,唉! 本机试了没再出现 附上下载地址 https://dl.google.com/dl/android/studio/install/1.3.2.0/android-studio-bundle-141.2178183-windows.exe
wattery 2015-08-26
  • 打赏
  • 举报
回复
这个是Android Studio 1.3.1 的一个bug ,最新的版1.3.2已经解决了,我也折腾了一周,唉! 本机试了没再出现 附上下载地址 https://dl.google.com/dl/android/studio/install/1.3.2.0/android-studio-bundle-141.2178183-windows.exe
我叫小麻 2015-08-24
  • 打赏
  • 举报
回复
api不兼容?版本不兼容!感觉是这几个问题!楼主可以看一下相关支持的版本!
qq_26945233 2015-08-20
  • 打赏
  • 举报
回复
发现新建项目时最小版本为5.1就行了 暂时这样先
qq_26945233 2015-08-20
  • 打赏
  • 举报
回复
引用 4 楼 comeheress 的回复:
改下build.gradle文件,将里面的compileSdkVersion改为23即可
没有这行啊
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.3.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}
comeheress 2015-08-20
  • 打赏
  • 举报
回复
另外尽量想办法用谷歌,这个问题,一搜就有答案
comeheress 2015-08-20
  • 打赏
  • 举报
回复
改下build.gradle文件,将里面的compileSdkVersion改为23即可
comeheress 2015-08-20
  • 打赏
  • 举报
回复
修改下build.gradle文件里
引用 6 楼 qq_26945233 的回复:
[quote=引用 4 楼 comeheress 的回复:] 改下build.gradle文件,将里面的compileSdkVersion改为23即可
没有这行啊
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.3.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}
[/quote] 另一个build.gradle文件,Gradle Scripts下有2个同名的
voidhug 2015-08-20
  • 打赏
  • 举报
回复
Windows下Android Studio有点蛋疼
MetaHack 2015-08-19
  • 打赏
  • 举报
回复
我也是这个问题,晕了
dengkz1 2015-08-19
  • 打赏
  • 举报
回复
好像将api版本调高就可以

80,349

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧