cordova升级平台从4.0.0到4.1.1 android build失败

时间:2016-10-18 11:10:31

标签: cordova android-security

从谷歌游戏商店收到电子邮件后,Android版本存在一些漏洞< 4.1.1,我尝试将cordova android平台升级到4.1.1。

我做了什么

  1. cordova platform remove android
  2. cordova platform添加android@4.1.1
  3. 在cordova构建android之后,我收到以下错误:
  4. 任务执行失败':dexArmv7Debug'。

      

    com.android.ide.common.internal.LoggedErrorException:无法运行命令:           /Users/USER/Library/Android/sdk/build-tools/22.0.1/dx --dex --no-optimize --output / Applications / XAMPP / xamppfiles / htdocs / COMPANY / PATH TO FILE / platforms / android / build / intermediates / dex / armv7 / debug --input-list = / Applications / XAMPP / xamppfiles / htdocs / COMPANY / PATH TO FILE / platforms / android / build / intermediates / tmp / dex / armv7 / debug / inputList.txt     错误代码:           2     输出:

        UNEXPECTED TOP-LEVEL EXCEPTION:
        com.android.dex.DexException: Multiple dex files define Landroid/support/v4/app/NotificationCompatHoneycomb;
                at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
                at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
                at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
                at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
                at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
                at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:454)
                at com.android.dx.command.dexer.Main.runMonoDex(Main.java:303)
                at com.android.dx.command.dexer.Main.run(Main.java:246)
                at com.android.dx.command.dexer.Main.main(Main.java:215)
                at com.android.dx.command.Main.main(Main.java:106)
    

    cordova插件列表

    com.pylonproducts.wifiwizard 0.2.11" WifiWizard"

    com.telerik.plugins.nativepagetransitions 0.6.5"原生页面过渡"

    cordova-plugin-background-mode 0.6.6-dev" BackgroundMode"

    cordova-plugin-compat 1.0.0" Compat"

    cordova-plugin-crosswalk-webview 1.7.2" Crosswalk WebView Engine"

    cordova-plugin-dialogs 1.2.1"通知"

    cordova-plugin-geolocation 2.2.0" Geolocation"

    cordova-plugin-globalization 1.0.3" Globalization"

    cordova-plugin-network-information 1.2.1"网络信息"

    cordova-plugin-screen-orientation 1.4.2"屏幕方向"

    cordova-plugin-spinner-dialog 1.3.1" SpinnerDialog"

    cordova-plugin-splashscreen 4.0.0" Splashscreen"

    cordova-plugin-statusbar 2.1.3" StatusBar"

    cordova-plugin-transport-security 0.1.2" App Transport Security"

    cordova-plugin-whitelist 1.2.2" Whitelist"

    cordova-plugin-x-toast 2.5.2" Toast"

    de.appplant.cordova.plugin.local-notification 0.8.1" LocalNotification"

    org.apache.cordova.device 0.3.0" Device"

    phonegap-plugin-push 1.7.1" PushPlugin"

    uk.co.workingedge.phonegap.plugin.istablet 1.1.0"是Tablet"

    感谢您的任何建议!

0 个答案:

没有答案