Cordova - Multiple dex files define (annotation)

后端 未结 5 1071
别那么骄傲
别那么骄傲 2020-12-11 18:59

I\'m working on a project with ionic. After I installed the Facebook Plugin I\'m not able to build the project for android anymore!

The command

ionic         


        
5条回答
  •  感动是毒
    2020-12-11 19:19

    i solved same problem in my app the problem is

     com.android.support:support-v4:+
    

    com.android.support:support-v4:+ file exist in /platforms/android/phonegap-facebook-plugin/Myapp-FacebookLib/libs

    if you want only used facebook and Push Notification Plugin then simply commit the line in project.properties

    #cordova.system.library.1=com.android.support:support-v4:+
    

    Best way to solved this problem

    1 First delete the android-support-v4.jar from /platforms/android/phonegap-facebook-plugin/Myapp-FacebookLib/libs
    
    2 second step create a file name build-extras.gradle in /platforms/android/phonegap-facebook-plugin/Myapp-FacebookLib/
    

    and type in file

    dependencies {
    compile "com.android.support:support-v4:+" }
    

提交回复
热议问题