Multiple dex files define Lorg/apache/cordova/BuildHelper

前端 未结 17 1609
梦如初夏
梦如初夏 2020-11-29 01:57

I\'m in trouble since yesterday. In my internship I faced the following build error, but I couldn\'t understand why :

$ cordova build android

[...]

FAILURE         


        
17条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-29 02:05

    None of the above solutions worked for me. For me the solution was upgrading gradle. I was using gradle 5.6.2. Updating to 5.6.4 then removing and adding my android platform and plugins did the trick.

    brew upgrade gradle
    

    Install / upgrade gradle on Mac OS X

    rm -rf plugins/*
    
    cordova platform rm android
    
    cordova platform add android
    

提交回复
热议问题