Java JarSigner 错误在 Appcelerator 中重复 metadata.json
Java JarSigner error duplicate metadata.json in Appcelerator
我正在尝试使用 SDK 6.1.0.GA
在 Appcelerator Studio
中构建一个 Android
应用程序。
我有 CommonJS
个模块,目前我们有两个版本,一个 pre SDK 6
和 apiVerion of 2
,一个 post SDK 6
和 apiVerion of 3
。
两个版本都在 Application/modules
文件夹中。
还有 Alloy
个模块。
[INFO] : No aidl files to compile, continuing
[INFO] : Generating i18n files
[DEBUG] : Compiling localization files
[DEBUG] : Merging en strings => /Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/res/values/strings.xml
[INFO] : Generating /Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/res/values/theme.xml
[INFO] : Running AAPT: /Applications/usr/sdk/Android/build-tools/23.0.1/aapt "package" "-f" "-m" "-J" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/gen" "-M" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/AndroidManifest.xml" "-A" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/bin/assets" "-S" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/res" "-I" "/Applications/usr/sdk/Android/platforms/android-23/android.jar" "-F" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/bin/app.ap_" "--output-text-symbols" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/intermediates/bundles" "--no-version-vectors" "--auto-add-overlay" "--extra-packages" "ti.modules.titanium.ui:android.support.v7.appcompat:android.support.v7.cardview"
[DEBUG] : Skipping duplicate jar file: /Users/chris/Library/Application Support/Titanium/modules/android/ti.map/3.0.1/lib/google-play-services-base.jar
[INFO] : Building Java source files: /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/javac "-J-Xmx1024M" "-encoding" "utf8" "-bootclasspath" "/Applications/usr/sdk/Android/platforms/android-23/android.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/kroll-v8.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-analytics.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/aps-analytics.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-android.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/jaxen-1.1.1.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/ti-commons-codec-1.3.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/kroll-common.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/titanium.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-multidex.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-filesystem.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-app.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-ui.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/nineoldandroids-appc-2.4.0.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-media.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-appcompat.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-animated-vector-drawable.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-annotations.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-v4.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-v4-internal_impl.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-v7-appcompat.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-vector-drawable.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-cardview.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/cardview-v7-23.4.0.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-locale.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-network.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-xml.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-platform.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-gesture.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-contacts.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-geolocation.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-database.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-utils.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.audit/2.0.0/auditandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.beacons/2.0.0/beaconsandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.beaconstatus/2.0.0/beaconstatusandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.branding/2.0.0/brandingandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.cloud/2.0.0/cloudandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.db/2.0.0/dbandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.home/2.0.0/homeandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.homepage/2.0.0/homepageandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.logger/2.0.0/loggerandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.loyalty/2.0.0/loyaltyandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.mainwindow/2.0.0/mainwindowandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.notifications/2.0.0/notificationsandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.phonehandler/2.0.0/phonehandlerandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.preferences/2.0.0/preferencesandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.referral/2.0.0/referralandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.registrationmanager/2.0.0/registrationmanagerandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.restcalls/2.0.0/restcallsandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.restcore/2.0.0/restcoreandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.router/2.0.0/routerandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.screens/2.0.0/screensandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.settings/2.0.0/settingsandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.usersettings/2.0.0/usersettingsandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.utilities/2.0.0/utilitiesandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.venuemap/2.0.0/venuemapandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.wayfind/2.0.0/wayfindandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.webview/2.0.0/webviewandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.webviewpage/2.0.0/webviewpageandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.android.wayfind/2.0.0/wayfind.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.android.wayfind/2.0.0/lib/indoors-library-surface.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.youorder/2.0.0/youorderandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/bencoding.android.tools/0.50/androidtools.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/com.liferay.beacons/0.4.3/liferay.beacons.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/com.liferay.beacons/0.4.3/lib/radius.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/com.shareourideas.locale/1.0/locale.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/com.wwl.canvas/2.0.0/canvas.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/dk.napp.drawer/2.0.0/nappslide.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/ti.barcode/3.0.0/barcode.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/ti.barcode/3.0.0/lib/core.jar:/Users/chris/Library/Application Support/Titanium/modules/android/ti.cloudpush/4.0.3/cloudpush.jar:/Users/chris/Library/Application Support/Titanium/modules/android/ti.cloudpush/4.0.3/lib/aps-cloudpush-1.1.4.jar:/Users/chris/Library/Application Support/Titanium/modules/android/ti.cloudpush/4.0.3/lib/google-play-services-base.jar:/Users/chris/Library/Application Support/Titanium/modules/android/ti.cloudpush/4.0.3/lib/google-play-services-gcm.jar:/Users/chris/Library/Application Support/Titanium/modules/android/ti.cloudpush/4.0.3/lib/google-play-services-iid.jar:/Users/chris/Library/Application Support/Titanium/modules/android/ti.map/3.0.1/map.jar:/Users/chris/Library/Application Support/Titanium/modules/android/ti.map/3.0.1/lib/google-play-services-map.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/kroll-apt.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/lib/titanium-verify.jar:Manifest.class:R.class:AssetCryptImpl.class:RelActivity.class:RelAppInfo.class:RelApplication.class" "-d" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/bin/classes" "-proc:none" "-target" "1.6" "-source" "1.6" "@/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/java-sources.txt"
[INFO] : Running dexer: /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/java "-Xmx1024M" "-XX:-UseGCOverheadLimit" "-Djava.ext.dirs=/Applications/usr/sdk/Android/platform-tools" "-jar" "/Applications/usr/sdk/Android/build-tools/23.0.1/lib/dx.jar" "--dex" "--multi-dex" "--output=/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/bin/dexfiles" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/bin/classes" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/lib/titanium-verify.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.audit/2.0.0/auditandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.beacons/2.0.0/beaconsandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.beaconstatus/2.0.0/beaconstatusandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.branding/2.0.0/brandingandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.cloud/2.0.0/cloudandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.db/2.0.0/dbandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.home/2.0.0/homeandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.homepage/2.0.0/homepageandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.logger/2.0.0/loggerandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.loyalty/2.0.0/loyaltyandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.mainwindow/2.0.0/mainwindowandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.notifications/2.0.0/notificationsandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.phonehandler/2.0.0/phonehandlerandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.preferences/2.0.0/preferencesandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.referral/2.0.0/referralandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.registrationmanager/2.0.0/registrationmanagerandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.restcalls/2.0.0/restcallsandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.restcore/2.0.0/restcoreandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.router/2.0.0/routerandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.screens/2.0.0/screensandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.settings/2.0.0/settingsandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.usersettings/2.0.0/usersettingsandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.utilities/2.0.0/utilitiesandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.venuemap/2.0.0/venuemapandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.wayfind/2.0.0/wayfindandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.webview/2.0.0/webviewandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.webviewpage/2.0.0/webviewpageandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.android.wayfind/2.0.0/wayfind.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.android.wayfind/2.0.0/lib/indoors-library-surface.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.youorder/2.0.0/youorderandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/bencoding.android.tools/0.50/androidtools.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/com.liferay.beacons/0.4.3/liferay.beacons.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/com.liferay.beacons/0.4.3/lib/radius.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/com.shareourideas.locale/1.0/locale.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/com.wwl.canvas/2.0.0/canvas.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/dk.napp.drawer/2.0.0/nappslide.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/ti.barcode/3.0.0/barcode.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/ti.barcode/3.0.0/lib/core.jar" "/Users/chris/Library/Application Support/Titanium/modules/android/ti.cloudpush/4.0.3/cloudpush.jar" "/Users/chris/Library/Application Support/Titanium/modules/android/ti.cloudpush/4.0.3/lib/aps-cloudpush-1.1.4.jar" "/Users/chris/Library/Application Support/Titanium/modules/android/ti.cloudpush/4.0.3/lib/google-play-services-base.jar" "/Users/chris/Library/Application Support/Titanium/modules/android/ti.cloudpush/4.0.3/lib/google-play-services-gcm.jar" "/Users/chris/Library/Application Support/Titanium/modules/android/ti.cloudpush/4.0.3/lib/google-play-services-iid.jar" "/Users/chris/Library/Application Support/Titanium/modules/android/ti.map/3.0.1/map.jar" "/Users/chris/Library/Application Support/Titanium/modules/android/ti.map/3.0.1/lib/google-play-services-map.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/kroll-v8.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-analytics.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/aps-analytics.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-android.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/jaxen-1.1.1.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/ti-commons-codec-1.3.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/kroll-common.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/titanium.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-multidex.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-filesystem.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-app.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-ui.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/nineoldandroids-appc-2.4.0.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-media.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-appcompat.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-animated-vector-drawable.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-annotations.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-v4.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-v4-internal_impl.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-v7-appcompat.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-vector-drawable.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-cardview.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/cardview-v7-23.4.0.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-locale.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-network.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-xml.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-platform.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-gesture.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-contacts.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-geolocation.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-database.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-utils.jar"
[INFO] : Creating unsigned apk
[INFO] : Processing /Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/bin/dexfiles
[INFO] : Processing /Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/src
[INFO] : Writing unsigned apk: /Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/bin/app-unsigned.apk
[INFO] : Using MD5withRSA signature algorithm
[INFO] : Signing apk: /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/jarsigner "-sigalg" "MD5withRSA" "-digestalg" "SHA1" "-keystore" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/dev_keystore" "-storepass" "*******" "-signedjar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/bin/REL.apk" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/bin/app-unsigned.apk" "tidev"
[ERROR] : Failed to sign apk:
[ERROR] : jarsigner: unable to sign jar: java.util.zip.ZipException: duplicate entry: metadata.json
所以我不确定重复的条目在哪里。
我注意到的一件事是这一行:
[INFO] : "-target" "1.6" "-source" "1.6" "@/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/java-sources.txt"
将目标设置为 1.6
,尽管我已将我能找到的所有地方都设置为 1.8
,所以我不确定这可能是问题的一部分还是只是转移注意力.抱歉,出于 space 的原因,不得不 trim 这样做。
系统:
- Mac OSX 10.12.5
- Appcelerator CLI 6.2.2
- Appcelerator SDK 6.1.0.GA
- JDKjdk1.8.0_31
注意:我刚刚下载了 6.1。1.GA 仍然有同样的问题。
使用某些 6.x sdks 编译的常规 android 模块存在 similar duplicate entry 问题,但我没有 运行 像这样针对已编译的 CommonJS 模块.试一试:
- 在您的应用项目中,导航至
modules/android/modulename/version
- 对
modulename.jar
进行 备份 以防以下内容损坏
- 做
unzip -l modulename.jar
。查找 metadata.json
文件。
- 如果存在,请执行
zip -d modulename.jar path/to/metadata.json
然后尝试重建您的项目。
我正在尝试使用 SDK 6.1.0.GA
在 Appcelerator Studio
中构建一个 Android
应用程序。
我有 CommonJS
个模块,目前我们有两个版本,一个 pre SDK 6
和 apiVerion of 2
,一个 post SDK 6
和 apiVerion of 3
。
两个版本都在 Application/modules
文件夹中。
还有 Alloy
个模块。
[INFO] : No aidl files to compile, continuing
[INFO] : Generating i18n files
[DEBUG] : Compiling localization files
[DEBUG] : Merging en strings => /Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/res/values/strings.xml
[INFO] : Generating /Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/res/values/theme.xml
[INFO] : Running AAPT: /Applications/usr/sdk/Android/build-tools/23.0.1/aapt "package" "-f" "-m" "-J" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/gen" "-M" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/AndroidManifest.xml" "-A" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/bin/assets" "-S" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/res" "-I" "/Applications/usr/sdk/Android/platforms/android-23/android.jar" "-F" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/bin/app.ap_" "--output-text-symbols" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/intermediates/bundles" "--no-version-vectors" "--auto-add-overlay" "--extra-packages" "ti.modules.titanium.ui:android.support.v7.appcompat:android.support.v7.cardview"
[DEBUG] : Skipping duplicate jar file: /Users/chris/Library/Application Support/Titanium/modules/android/ti.map/3.0.1/lib/google-play-services-base.jar
[INFO] : Building Java source files: /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/javac "-J-Xmx1024M" "-encoding" "utf8" "-bootclasspath" "/Applications/usr/sdk/Android/platforms/android-23/android.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/kroll-v8.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-analytics.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/aps-analytics.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-android.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/jaxen-1.1.1.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/ti-commons-codec-1.3.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/kroll-common.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/titanium.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-multidex.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-filesystem.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-app.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-ui.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/nineoldandroids-appc-2.4.0.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-media.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-appcompat.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-animated-vector-drawable.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-annotations.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-v4.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-v4-internal_impl.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-v7-appcompat.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-vector-drawable.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-cardview.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/cardview-v7-23.4.0.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-locale.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-network.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-xml.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-platform.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-gesture.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-contacts.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-geolocation.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-database.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-utils.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.audit/2.0.0/auditandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.beacons/2.0.0/beaconsandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.beaconstatus/2.0.0/beaconstatusandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.branding/2.0.0/brandingandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.cloud/2.0.0/cloudandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.db/2.0.0/dbandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.home/2.0.0/homeandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.homepage/2.0.0/homepageandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.logger/2.0.0/loggerandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.loyalty/2.0.0/loyaltyandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.mainwindow/2.0.0/mainwindowandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.notifications/2.0.0/notificationsandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.phonehandler/2.0.0/phonehandlerandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.preferences/2.0.0/preferencesandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.referral/2.0.0/referralandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.registrationmanager/2.0.0/registrationmanagerandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.restcalls/2.0.0/restcallsandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.restcore/2.0.0/restcoreandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.router/2.0.0/routerandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.screens/2.0.0/screensandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.settings/2.0.0/settingsandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.usersettings/2.0.0/usersettingsandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.utilities/2.0.0/utilitiesandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.venuemap/2.0.0/venuemapandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.wayfind/2.0.0/wayfindandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.webview/2.0.0/webviewandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.webviewpage/2.0.0/webviewpageandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.android.wayfind/2.0.0/wayfind.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.android.wayfind/2.0.0/lib/indoors-library-surface.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.youorder/2.0.0/youorderandroid.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/bencoding.android.tools/0.50/androidtools.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/com.liferay.beacons/0.4.3/liferay.beacons.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/com.liferay.beacons/0.4.3/lib/radius.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/com.shareourideas.locale/1.0/locale.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/com.wwl.canvas/2.0.0/canvas.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/dk.napp.drawer/2.0.0/nappslide.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/ti.barcode/3.0.0/barcode.jar:/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/ti.barcode/3.0.0/lib/core.jar:/Users/chris/Library/Application Support/Titanium/modules/android/ti.cloudpush/4.0.3/cloudpush.jar:/Users/chris/Library/Application Support/Titanium/modules/android/ti.cloudpush/4.0.3/lib/aps-cloudpush-1.1.4.jar:/Users/chris/Library/Application Support/Titanium/modules/android/ti.cloudpush/4.0.3/lib/google-play-services-base.jar:/Users/chris/Library/Application Support/Titanium/modules/android/ti.cloudpush/4.0.3/lib/google-play-services-gcm.jar:/Users/chris/Library/Application Support/Titanium/modules/android/ti.cloudpush/4.0.3/lib/google-play-services-iid.jar:/Users/chris/Library/Application Support/Titanium/modules/android/ti.map/3.0.1/map.jar:/Users/chris/Library/Application Support/Titanium/modules/android/ti.map/3.0.1/lib/google-play-services-map.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/kroll-apt.jar:/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/lib/titanium-verify.jar:Manifest.class:R.class:AssetCryptImpl.class:RelActivity.class:RelAppInfo.class:RelApplication.class" "-d" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/bin/classes" "-proc:none" "-target" "1.6" "-source" "1.6" "@/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/java-sources.txt"
[INFO] : Running dexer: /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/java "-Xmx1024M" "-XX:-UseGCOverheadLimit" "-Djava.ext.dirs=/Applications/usr/sdk/Android/platform-tools" "-jar" "/Applications/usr/sdk/Android/build-tools/23.0.1/lib/dx.jar" "--dex" "--multi-dex" "--output=/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/bin/dexfiles" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/bin/classes" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/lib/titanium-verify.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.audit/2.0.0/auditandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.beacons/2.0.0/beaconsandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.beaconstatus/2.0.0/beaconstatusandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.branding/2.0.0/brandingandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.cloud/2.0.0/cloudandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.db/2.0.0/dbandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.home/2.0.0/homeandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.homepage/2.0.0/homepageandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.logger/2.0.0/loggerandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.loyalty/2.0.0/loyaltyandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.mainwindow/2.0.0/mainwindowandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.notifications/2.0.0/notificationsandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.phonehandler/2.0.0/phonehandlerandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.preferences/2.0.0/preferencesandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.referral/2.0.0/referralandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.registrationmanager/2.0.0/registrationmanagerandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.restcalls/2.0.0/restcallsandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.restcore/2.0.0/restcoreandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.router/2.0.0/routerandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.screens/2.0.0/screensandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.settings/2.0.0/settingsandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.usersettings/2.0.0/usersettingsandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.utilities/2.0.0/utilitiesandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.venuemap/2.0.0/venuemapandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.wayfind/2.0.0/wayfindandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.webview/2.0.0/webviewandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.webviewpage/2.0.0/webviewpageandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.android.wayfind/2.0.0/wayfind.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.android.wayfind/2.0.0/lib/indoors-library-surface.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/au.com.mobilogica.youorder/2.0.0/youorderandroid.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/bencoding.android.tools/0.50/androidtools.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/com.liferay.beacons/0.4.3/liferay.beacons.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/com.liferay.beacons/0.4.3/lib/radius.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/com.shareourideas.locale/1.0/locale.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/com.wwl.canvas/2.0.0/canvas.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/dk.napp.drawer/2.0.0/nappslide.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/ti.barcode/3.0.0/barcode.jar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/modules/android/ti.barcode/3.0.0/lib/core.jar" "/Users/chris/Library/Application Support/Titanium/modules/android/ti.cloudpush/4.0.3/cloudpush.jar" "/Users/chris/Library/Application Support/Titanium/modules/android/ti.cloudpush/4.0.3/lib/aps-cloudpush-1.1.4.jar" "/Users/chris/Library/Application Support/Titanium/modules/android/ti.cloudpush/4.0.3/lib/google-play-services-base.jar" "/Users/chris/Library/Application Support/Titanium/modules/android/ti.cloudpush/4.0.3/lib/google-play-services-gcm.jar" "/Users/chris/Library/Application Support/Titanium/modules/android/ti.cloudpush/4.0.3/lib/google-play-services-iid.jar" "/Users/chris/Library/Application Support/Titanium/modules/android/ti.map/3.0.1/map.jar" "/Users/chris/Library/Application Support/Titanium/modules/android/ti.map/3.0.1/lib/google-play-services-map.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/kroll-v8.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-analytics.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/aps-analytics.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-android.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/jaxen-1.1.1.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/ti-commons-codec-1.3.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/kroll-common.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/titanium.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-multidex.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-filesystem.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-app.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-ui.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/nineoldandroids-appc-2.4.0.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-media.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-appcompat.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-animated-vector-drawable.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-annotations.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-v4.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-v4-internal_impl.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-v7-appcompat.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/android-support-vector-drawable.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-cardview.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/cardview-v7-23.4.0.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-locale.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-network.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-xml.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-platform.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-gesture.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-contacts.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-geolocation.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-database.jar" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/modules/titanium-utils.jar"
[INFO] : Creating unsigned apk
[INFO] : Processing /Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/bin/dexfiles
[INFO] : Processing /Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/src
[INFO] : Writing unsigned apk: /Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/bin/app-unsigned.apk
[INFO] : Using MD5withRSA signature algorithm
[INFO] : Signing apk: /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/jarsigner "-sigalg" "MD5withRSA" "-digestalg" "SHA1" "-keystore" "/Users/chris/Library/Application Support/Titanium/mobilesdk/osx/6.1.0.GA/android/dev_keystore" "-storepass" "*******" "-signedjar" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/bin/REL.apk" "/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/bin/app-unsigned.apk" "tidev"
[ERROR] : Failed to sign apk:
[ERROR] : jarsigner: unable to sign jar: java.util.zip.ZipException: duplicate entry: metadata.json
所以我不确定重复的条目在哪里。
我注意到的一件事是这一行:
[INFO] : "-target" "1.6" "-source" "1.6" "@/Users/chris/Ti/APPCGenieWS/GenieProject/Genie.Alloy/build/android/java-sources.txt"
将目标设置为 1.6
,尽管我已将我能找到的所有地方都设置为 1.8
,所以我不确定这可能是问题的一部分还是只是转移注意力.抱歉,出于 space 的原因,不得不 trim 这样做。
系统:
- Mac OSX 10.12.5
- Appcelerator CLI 6.2.2
- Appcelerator SDK 6.1.0.GA
- JDKjdk1.8.0_31
注意:我刚刚下载了 6.1。1.GA 仍然有同样的问题。
使用某些 6.x sdks 编译的常规 android 模块存在 similar duplicate entry 问题,但我没有 运行 像这样针对已编译的 CommonJS 模块.试一试:
- 在您的应用项目中,导航至
modules/android/modulename/version
- 对
modulename.jar
进行 备份 以防以下内容损坏 - 做
unzip -l modulename.jar
。查找metadata.json
文件。 - 如果存在,请执行
zip -d modulename.jar path/to/metadata.json
然后尝试重建您的项目。