Generate Signed APK Error: Error converting bytecode to dex and 1 more

前端 未结 1 790
日久生厌
日久生厌 2021-01-23 14:31

When I Clean/Rebuild my project or even run app, It doesn\'t return any errors. But when I generate signed APK, It returns two errors.

Error:Error converting by         


        
相关标签:
1条回答
  • 2021-01-23 14:50

    Facebook audience network will pull in play-services as well, so you'll have to exclude it:

    I don't remember exactly what Facebook's dependencies are, so your 'analytics' line might not be complete enough for the audience network to run properly. You might want to add the entire play services like so: compile 'com.google.android.gms:play-services:9.2.1', and remove analytics.

    Or if you can see exactly which dependencies Facebook requires, you can grab the correct ones here.

    compile ('com.facebook.android:audience-network-sdk:4.10.0') {
        exclude group: 'com.google.android.gms'
    }
    
    0 讨论(0)
提交回复
热议问题