Error after adding play-services library : ':app:transformClassesWithJarMergingForDebug'

后端 未结 1 897
清酒与你
清酒与你 2020-12-09 20:29

My project was working perfectly with those libraries included:

// Support libraries
compile \'com.android.support:support-v4:23.1.0\'
compile \'com.android.         


        
相关标签:
1条回答
  • 2020-12-09 20:56

    Looks like play-services already contains support-v4. Try excluding it from the classpath

    compile('com.google.android.gms:play-services:8.1.0') {
        exclude group: 'com.android.support', module: 'support-v4'
    }
    

    The second error is different. First thing don't use Java8 it's not supported instead use Java7 Also what version of the Android Gradle Plugin are you using? Try the latest com.android.tools.build:gradle:1.4.0-beta4

    Also try not using the latest play-services I ran into an issue compiling against 8.1.0 but not 7.8.0

    0 讨论(0)
提交回复
热议问题