V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
yeelone
V2EX  ›  问与答

ubuntu studio 创建 project 之后报的如下错误,请问如何解决 ?

  •  
  •   yeelone · 2015-08-23 20:10:50 +08:00 · 2577 次点击
    这是一个创建于 3140 天前的主题,其中的信息可能已经有所发展或是发生改变。
    用 studio 创建的项目,
    /home/yeelone/AndroidStudioProjects/MyApplication2/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'.

    以下是 build.gradle 的信息:
    android {
    compileSdkVersion 22
    buildToolsVersion "23.0.0"

    defaultConfig {
    applicationId "com.example.yeelone.myapplication"
    minSdkVersion 16
    targetSdkVersion 22
    versionCode 1
    versionName "1.0"
    }
    buildTypes {
    release {
    minifyEnabled false
    proguardFiles getDefaultProguardFile ('proguard-android.txt'), 'proguard-rules.pro'
    }
    }
    }

    windows 下的 studio 并不会报这个错误,怎么在 ubuntu 下安装之后 会报这样的错误,对 android studio 不熟悉,求指教 。
    7 条回复    2015-08-24 23:05:46 +08:00
    bkmi
        1
    bkmi  
       2015-08-23 21:03:21 +08:00
    你看到你的报错信息里的” values-v23 “了么,而你用的 compileSdkVersion 却是 22 的
    yeelone
        2
    yeelone  
    OP
       2015-08-23 21:05:35 +08:00 via Android
    @bkmi 一路默认创建的,为什么会出现版本不一致的问题呢?
    bkmi
        3
    bkmi  
       2015-08-23 21:09:44 +08:00
    AndroidStudio 出的低级 bug 可不少了,不在乎这一两个。
    Lanceliel
        4
    Lanceliel  
       2015-08-23 23:04:47 +08:00
    这标题吓我一跳……还在想我 ubuntu studio 用得好好的哪来的问题。
    点进来一看原来是说 ubuntu 下的 Android Studio 。
    两种解决方式:换 SDK 23 ,或者把 SDK 23 干掉用 SDK 22 。
    jinhan13789
        5
    jinhan13789  
       2015-08-24 06:51:53 +08:00 via Android
    这只是其中一个问题而已,你以后遇到的更多,给你一个经验~
    看 log 从下往上看,一般真正的错误在倒数 3 ~ 8 个错误点。表问我怎么知道的
    yeelone
        6
    yeelone  
    OP
       2015-08-24 20:20:34 +08:00
    @Lanceliel 怎么弄都不行。真是操碎了心~~~~
    Lanceliel
        7
    Lanceliel  
       2015-08-24 23:05:46 +08:00
    @yeelone 你是打算用 SDK 22 还是 23?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3373 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 13:16 · PVG 21:16 · LAX 06:16 · JFK 09:16
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.