错误:属性"机器人:定向"已定义

错误:属性"机器人:定向"已定义

问题描述:

我已经加入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'

}