2016-11-23 30 views
0

我同時使用鈦應用自定義模塊面臨的問題: -的jarsigner:無法登錄罐子:java.util.zip.ZipException:重複項:組織/ Appcelerator的/鈦/ GEN/bindings.json

[ ERROR]:無法APK簽名:

[錯誤]:的jarsigner:無法登錄罐子:java.util.zip.ZipException:重複項:組織/ Appcelerator的/鈦/ GEN/bindings.json

我爲Android創建了新的自定義模塊,我試圖在我的應用程序中使用這個模塊,但是在運行時我收到了上述錯誤。 我沒有得到任何解決方案,但請分享,如果任何人有任何想法有關這個問題。

感謝

回答

0

關於此錯誤的APPC JIRA(https://jira.appcelerator.org/browse/TIMOB-23502

從PR(https://github.com/appcelerator/titanium_mobile/pull/8551)長時間的討論,看起來你將不得不等待,直到6.1.0的修復,或者建立一個新的sdk,或者櫻桃選擇修復到您當前的SDK中。

在討論中,肖恩康威提供了一個解決方案(https://jira.appcelerator.org/browse/TIMOB-23502?focusedCommentId=393172&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-393172),一些人工作,但不是其他人。

我能夠通過執行以下操作刪除根/ bindings.json文件:

(1)將Java編譯器1.8

(2)更新build.properties: 鈦。平臺=/Users/xxx/Library /應用程序支持/ Titanium/mobilesdk/osx/5.4.0.GA/android android.platform =/Users/xxx/Library/android-23 android .ndk =/Users/xxx/android-sdks/build-tools/22.0.1/android-ndk-r10e

(3)更改構建路徑中的所有庫以使用5.4.0.GA JARS

(4)刪除構建和dist文件夾,然後使用ANT重建***否則無法正常工作,如果使用package- - > Android的模塊 不使用封裝選項來構建,去到build.xml,右鍵 - >運行方式Ant構建

成功的項目建設