Skip to content Skip to sidebar Skip to footer

Error:attribute "android:orientation" Has Already Been Defined

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 'viewpa

Solution 1:

Try to use at build.gradle

compile'fr.baloomba:viewpagerindicator:2.4.2'

See more details at http://mvnrepository.com/artifact/fr.baloomba/viewpagerindicator/2.4.2

Solution 2:

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'

}

Post a Comment for "Error:attribute "android:orientation" Has Already Been Defined"