错误:属性"机器人:定向"已定义 [英] Error:Attribute "android:orientation" has already been defined

查看:259
本文介绍了错误:属性"机器人:定向"已定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经加入viewpagerindicator库和com.android.support:gridlayout-v7:21.0.0作为我的项目Dependance的。他们都宣称具有方向属性结果
在viewpagerindicator'库书面 -

I have added "viewpagerindicator" library and "com.android.support:gridlayout-v7:21.0.0" as a dependance in my project . Both of them has declare 'orientation' attribute
in 'viewpagerindicator' library its written -

<declare-styleable name="CirclePageIndicator">
        <attr name="android:orientation"> 
    </declare-styleable>

我收到上述错误我怎么能解决这个问题。

I am getting the above error how I can resolve this.

推荐答案

通过这个.gradle成功打造为我

With this .gradle build successfully for me

apply plugin: 'com.android.application'

android {
compileSdkVersion 21
buildToolsVersion "21.1.1"

defaultConfig {
    applicationId "com.cooperbros.myapplication"
    minSdkVersion 9
    targetSdkVersion 21
    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:21.0.2'
  compile 'com.android.support:gridlayout-v7:21.0.0'
  compile 'fr.baloomba:viewpagerindicator:2.4.2'

}

这篇关于错误:属性&QUOT;机器人:定向&QUOT;已定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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