Android的工作室 - Appcompat构建失败值-V23 / styles_bas​​es.xml [英] Android Studio - Appcompat build fail values-v23/styles_bases.xml

查看:188
本文介绍了Android的工作室 - Appcompat构建失败值-V23 / styles_bas​​es.xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我会从我想要实现启动<一href="https://github.com/googlecast/GameManagerSamples">https://github.com/googlecast/GameManagerSamples 我也跟着指示在这里:<一href="https://developers.google.com/cast/docs/android_sender">https://developers.google.com/cast/docs/android_sender

I'll start from what I want to achieve: building the googlecast-manager example provided here: https://github.com/googlecast/GameManagerSamples I followed instructions here: https://developers.google.com/cast/docs/android_sender

所以首先我从github上下载的项目,然后用了Android SDK管理器我下载了Android的支持库和谷歌播放服务。然后在我的项目,我去了开放模块设置 - >添加,然后去的Andr​​oid SDK \演员\机器人\ SUPPORT \ V7 \ appcompat,并把它添加。

So first I downloaded from github the project, then with the Android SDK Manager I downloaded Android Support Libraries and Google play Services. Then in my project, I went to "Open Modules Setting->Add" then went to "Android SDK\extras\android\support\v7\appcompat" and added it.

随后的第一步,以确保它的工作,我想建立它。因此,右键单击appcompat - >编译模块Appcompat失败与2个错误:

Then first step to ensure it's working I want to build it. So right click on appcompat->"Compile Module Appcompat" it fails with 2 errors:

  • 错误:(20,-1)的Andr​​oid容易编译:[appcompat] D:\ Android的SDK \演员\机器人\ SUPPORT \ V7 \ appcompat \水库\值-V23 \ styles_bas​​e.xml:20 :错误:错误检索父项:未发现的资源匹配给定名称机器人:Widget.Material.Button.Colored。

  • Error:(20, -1) android-apt-compiler: [appcompat] D:\Android SDK\extras\android\support\v7\appcompat\res\values-v23\styles_base.xml:20: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.

错误:(19,-1)的Andr​​oid容易编译:[appcompat] D:\ Android的SDK \演员\机器人\ SUPPORT \ V7 \ appcompat \水库\值-V23 \ styles_bas​​e_text.xml:19 :错误:错误检索父项:未发现的资源匹配给定名称机器人:TextAppearance.Material.Widget.Button.Inverse。

Error:(19, -1) android-apt-compiler: [appcompat] D:\Android SDK\extras\android\support\v7\appcompat\res\values-v23\styles_base_text.xml:19: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.

做同样的谷歌播放编就像一个魅力。

Doing the same for Google Play Compiled like a charm.

我试图找到视频/其他类似的问题,但它是有史以来太复杂或不是我的问题。

I've tried to find videos/other similar issue but it's ever too complicated or not my problem.

下面是appcompat的Andr​​oidManifest.xml中:

Here is the AndroidManifest.xml of appcompat:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="android.support.v7.appcompat">
<uses-sdk android:minSdkVersion="9"
    android:targetSdkVersion="19"/>
<application />

下面是什么是从Android SDK管理器安装:

Here is what is installed from the Android SDK Manager:

推荐答案

我也遇到同样的问题和放大器;现在已经修好了,你只需要做的就是在Android的工作室build.gradle模块:在摇篮脚本程序在左侧机器人工作室。看看build.gradle文件的code应该是像下面。

I also encounter the same problem & now have fixed it you just have to do is in android studio the build.gradle module:app under the gradle script at the left side in android studio. look the build.gradle file's code should be something like below.

总之你必须下载和放大器;安装最新的 API 这是现在 API 23

In short you have to download & install latest API which is now API 23

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.0"

    defaultConfig {
        applicationId "com.example.inzi.app"
        minSdkVersion 9
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:23.0.0'
}

这篇关于Android的工作室 - Appcompat构建失败值-V23 / styles_bas​​es.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆