android - Error on adding appcompat-v7 api level 22 -
i'm trying add appcompat-v7 projct, when run gradle sync throws following error:
/path/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/22.2.1/res/values/values.xml error:(2) attribute "layout" has been defined
that build.gradle add line compile 'com.android.support:appcompat-v7:22.2.1'
/path/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/22.2.1/res/values/values.xml error:(2) attribute "layout" has been defined compilesdkversion 22 buildtoolsversion "22.0.1" defaultconfig { minsdkversion 14 targetsdkversion 22 } ... dependencies { compile filetree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:support-v4:22.2.1' compile 'com.android.support:appcompat-v7:22.2.1' compile 'com.google.android.gms:play-services-analytics:7.3.0' compile('org.simpleframework:simple-xml:2.7.1') { exclude group: 'stax', module: 'stax-api' exclude group: 'xpp3', module: 'xpp3' } compile('com.crashlytics.sdk.android:crashlytics:2.5.1@aar') { transitive = true; } }
it's either project or 1 of dependencies defines 'layout' attribute. in experience, when occurs gradle output contains information lead duplicate attribute defined. can use information track down , rename conflicting attribute. if paste full output gradle can pinpoint exact cause.
Comments
Post a Comment