Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/218.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 材料设计支持库和gms:钱包库之间的冲突是否有解决方案;rippleColor;?_Android_Gradle_Material Design_Android Pay - Fatal编程技术网

Android 材料设计支持库和gms:钱包库之间的冲突是否有解决方案;rippleColor;?

Android 材料设计支持库和gms:钱包库之间的冲突是否有解决方案;rippleColor;?,android,gradle,material-design,android-pay,Android,Gradle,Material Design,Android Pay,在我的项目中,当我尝试添加最新的设计支持库时,会出现以下错误,该错误似乎与钱包库冲突: D:\Android Stuff\ReleaseMEdia\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-wallet\8.1.0\res\values\wallet_colors.xml Error:(2) Attribute "rippleColor" has already been defined

在我的项目中,当我尝试添加最新的设计支持库时,会出现以下错误,该错误似乎与钱包库冲突:

D:\Android Stuff\ReleaseMEdia\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-wallet\8.1.0\res\values\wallet_colors.xml
Error:(2) Attribute "rippleColor" has already been defined
下面是我所有的gradle依赖项列表:

compile 'com.google.android.gms:play-services-wallet:8.1.0'
compile 'com.google.android.gms:play-services-ads:7.8.0'
compile 'com.google.code.gson:gson:2.2.+'
compile 'com.android.support:appcompat-v7:22.2.1'
compile 'com.android.support:cardview-v7:22.2.1'
compile 'com.jakewharton:butterknife:5.1.2'
compile 'com.readystatesoftware.systembartint:systembartint:1.0.3'
compile 'com.balysv:material-ripple:0.9.0-SNAPSHOT@aar'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.jpardogo.materialtabstrip:library:1.0.6'
compile 'com.google.api-client:google-api-client-android:1.19.0'
compile 'com.android.support:cardview-v7:22.2.1'
compile 'com.android.support:recyclerview-v7:22.2.1'
compile 'com.github.gabrielemariotti.cards:cardslib-core:2.0.1'
compile 'com.github.gabrielemariotti.cards:cardslib-cards:2.0.1'
compile 'com.github.gabrielemariotti.cards:cardslib-recyclerview:2.0.1'
compile 'se.emilsjolander:stickylistheaders:2.1.5'
compile 'com.squareup.picasso:picasso:2.4.0'
compile 'com.android.support:palette-v7:23.1.0'
compile 'com.nispok:snackbar:2.11.+'
compile 'com.uwetrottmann:trakt-java:4.3.1'
compile 'com.melnykov:floatingactionbutton:1.3.0'
compile 'com.android.support:customtabs:23.1.0'
compile 'com.android.support:multidex:1.0.0'
compile 'jp.wasabeef:picasso-transformations:1.2.1'
compile 'com.android.support:design:23.1.0'
在我将设计库添加到底部之前,所有内容都会很好地同步,然后在尝试同步gradle时会显示此消息


我在网上见过其他一些人讨论这个问题,但似乎还没有人有解决方案。有人能提供一些见解吗?

看起来这与钱包无关,而是您根据使用的
com.balysv:material ripple
版本的问题

显示最新版本(包括上述修复程序)为:


这个给我修好了。不确定错误消息中提到钱包的原因,我想这就是为什么每个有此问题的人都很难修复它,认为钱包就是问题所在。谢谢
compile 'com.balysv:material-ripple:1.0.2'