microsoftconnect / intune-app-wrapping-tool-android

Use the Intune App Wrapping Tool for Android to enable Android apps to be managed by Microsoft Intune
28 stars 11 forks source link

java.util.zip.ZipException: duplicate entry: stamp-cert-sha256 #78

Closed rs5173 closed 1 year ago

rs5173 commented 1 year ago

I get this error when I use the tool to package the apk

this is log :

WRN Application wrapping in progress. App Wrapping Tool Version: 1.0.3935.1 DBG [Diagnostic][BEGIN] Runtime information. DBG [Diagnostic] OS Version: Windows 10 DBG [Diagnostic] Java version: 11 DBG [Diagnostic] JVM Bitness: amd64 DBG [Diagnostic][END] Runtime information. DBG Begin Packaging: C:\Users\Administrator\Desktop\test\.\app.apk DBG [APKTool] Begin decoding APK file: C:\Users\Administrator\Desktop\test\.\app.apk INF Using Apktool 2.7.0 on app.apk INF Loading resource table... INF Decoding AndroidManifest.xml with resources... INF Loading resource table from file: C:\Users\ADMINI~1\AppData\Local\Temp\IntuneAppWrappingTool-2285848646729712778\framework\1.apk VRB Skipping staged alias stagedId (1cf0000) finalId: 1110007 VRB Skipping staged alias stagedId (1cf0001) finalId: 1110008 VRB Skipping staged alias stagedId (1d80000) finalId: 10800b5 VRB Skipping staged alias stagedId (1d90000) finalId: 1070006 VRB Skipping staged alias stagedId (1dc0000) finalId: 104003c VRB Skipping staged alias stagedId (1dc0001) finalId: 104003d VRB Skipping staged alias stagedId (1dc0002) finalId: 104003e VRB Skipping staged alias stagedId (1dc0003) finalId: 104003f VRB Skipping staged alias stagedId (1dc0004) finalId: 1040040 VRB Skipping staged alias stagedId (1dc0005) finalId: 1040041 VRB Skipping staged alias stagedId (1dc0006) finalId: 1040042 VRB Skipping staged alias stagedId (1dc0007) finalId: 1040043 VRB Skipping staged alias stagedId (1dd0000) finalId: 10302e5 VRB Skipping staged alias stagedId (1de0004) finalId: 1020058 VRB Skipping staged alias stagedId (1de0005) finalId: 1020059 VRB Skipping staged alias stagedId (1de0006) finalId: 102005a VRB Skipping staged alias stagedId (1df0000) finalId: 101064d VRB Skipping staged alias stagedId (1df0001) finalId: 101064e VRB Skipping staged alias stagedId (1df0002) finalId: 101064f VRB Skipping staged alias stagedId (1df0003) finalId: 1010650 VRB Skipping staged alias stagedId (1df0004) finalId: 1010651 VRB Skipping staged alias stagedId (1df0005) finalId: 1010652 VRB Skipping staged alias stagedId (1df0006) finalId: 1010653 VRB Skipping staged alias stagedId (1df0007) finalId: 1010654 VRB Skipping staged alias stagedId (1df0008) finalId: 1010655 VRB Skipping staged alias stagedId (1df0009) finalId: 1010656 VRB Skipping staged alias stagedId (1df000a) finalId: 1010657 VRB Skipping staged alias stagedId (1df000b) finalId: 1010658 VRB Skipping staged alias stagedId (1df000c) finalId: 1010659 VRB Skipping staged alias stagedId (1df000d) finalId: 101065a VRB Skipping staged alias stagedId (1df000e) finalId: 101065b VRB Skipping staged alias stagedId (1df000f) finalId: 101065c VRB Skipping staged alias stagedId (1df0012) finalId: 101065d VRB Skipping staged alias stagedId (1df0013) finalId: 101065e VRB Skipping staged alias stagedId (1df0014) finalId: 101065f VRB Skipping staged alias stagedId (1df0015) finalId: 1010660 VRB Skipping staged alias stagedId (1df0016) finalId: 1010661 VRB Skipping staged alias stagedId (1df0017) finalId: 1010662 VRB Skipping staged alias stagedId (1df0018) finalId: 1010663 VRB Skipping staged alias stagedId (1df0019) finalId: 1010664 VRB Skipping staged alias stagedId (1df001a) finalId: 1010665 VRB Skipping staged alias stagedId (1df001b) finalId: 1010666 VRB Skipping staged alias stagedId (1df001c) finalId: 1010667 VRB Skipping staged alias stagedId (1df001d) finalId: 1010668 VRB Skipping staged alias stagedId (1df001e) finalId: 1010669 VRB Skipping staged alias stagedId (1df001f) finalId: 101066a VRB Skipping staged alias stagedId (1df0020) finalId: 101066b VRB Skipping staged alias stagedId (1df0021) finalId: 101066c VRB Skipping staged alias stagedId (1df0022) finalId: 101066d VRB Skipping staged alias stagedId (1df0023) finalId: 101066e VRB Skipping staged alias stagedId (1df0024) finalId: 101066f VRB Skipping staged alias stagedId (1df0025) finalId: 1010670 VRB Skipping staged alias stagedId (1df0026) finalId: 1010671 VRB Skipping staged alias stagedId (1df0027) finalId: 1010672 VRB Skipping staged alias stagedId (1fe0000) finalId: 1020055 VRB Skipping staged alias stagedId (1fe0001) finalId: 1020056 VRB Skipping staged alias stagedId (1fe0002) finalId: 1020057 VRB Skipping staged alias stagedId (1ff0000) finalId: 101064c INF Regular manifest package... INF Decoding file-resources... VRB Win version: 0x55f0000a = 1441792010 (Windows Vista) INF Decoding values */* XMLs... INF Baksmaling classes.dex... INF Baksmaling classes2.dex... INF Copying assets and libs... INF Copying unknown files... INF Copying original files... INF Copying META-INF/services directory DBG [APKTool] Finish decoding APK file: C:\Users\Administrator\Desktop\test\.\app.apk DBG [APKTool] Begin decoding APK file: C:\Program Files (x86)\Microsoft Intune Mobile Application Management\Android\App Wrapping Tool\lib\IntuneAppBase.apk INF Using Apktool 2.7.0 on IntuneAppBase.apk INF Loading resource table... INF Decoding AndroidManifest.xml with resources... INF Loading resource table from file: C:\Users\ADMINI~1\AppData\Local\Temp\IntuneAppWrappingTool-2285848646729712778\framework\1.apk VRB Skipping staged alias stagedId (1cf0000) finalId: 1110007 VRB Skipping staged alias stagedId (1cf0001) finalId: 1110008 VRB Skipping staged alias stagedId (1d80000) finalId: 10800b5 VRB Skipping staged alias stagedId (1d90000) finalId: 1070006 VRB Skipping staged alias stagedId (1dc0000) finalId: 104003c VRB Skipping staged alias stagedId (1dc0001) finalId: 104003d VRB Skipping staged alias stagedId (1dc0002) finalId: 104003e VRB Skipping staged alias stagedId (1dc0003) finalId: 104003f VRB Skipping staged alias stagedId (1dc0004) finalId: 1040040 VRB Skipping staged alias stagedId (1dc0005) finalId: 1040041 VRB Skipping staged alias stagedId (1dc0006) finalId: 1040042 VRB Skipping staged alias stagedId (1dc0007) finalId: 1040043 VRB Skipping staged alias stagedId (1dd0000) finalId: 10302e5 VRB Skipping staged alias stagedId (1de0004) finalId: 1020058 VRB Skipping staged alias stagedId (1de0005) finalId: 1020059 VRB Skipping staged alias stagedId (1de0006) finalId: 102005a VRB Skipping staged alias stagedId (1df0000) finalId: 101064d VRB Skipping staged alias stagedId (1df0001) finalId: 101064e VRB Skipping staged alias stagedId (1df0002) finalId: 101064f VRB Skipping staged alias stagedId (1df0003) finalId: 1010650 VRB Skipping staged alias stagedId (1df0004) finalId: 1010651 VRB Skipping staged alias stagedId (1df0005) finalId: 1010652 VRB Skipping staged alias stagedId (1df0006) finalId: 1010653 VRB Skipping staged alias stagedId (1df0007) finalId: 1010654 VRB Skipping staged alias stagedId (1df0008) finalId: 1010655 VRB Skipping staged alias stagedId (1df0009) finalId: 1010656 VRB Skipping staged alias stagedId (1df000a) finalId: 1010657 VRB Skipping staged alias stagedId (1df000b) finalId: 1010658 VRB Skipping staged alias stagedId (1df000c) finalId: 1010659 VRB Skipping staged alias stagedId (1df000d) finalId: 101065a VRB Skipping staged alias stagedId (1df000e) finalId: 101065b VRB Skipping staged alias stagedId (1df000f) finalId: 101065c VRB Skipping staged alias stagedId (1df0012) finalId: 101065d VRB Skipping staged alias stagedId (1df0013) finalId: 101065e VRB Skipping staged alias stagedId (1df0014) finalId: 101065f VRB Skipping staged alias stagedId (1df0015) finalId: 1010660 VRB Skipping staged alias stagedId (1df0016) finalId: 1010661 VRB Skipping staged alias stagedId (1df0017) finalId: 1010662 VRB Skipping staged alias stagedId (1df0018) finalId: 1010663 VRB Skipping staged alias stagedId (1df0019) finalId: 1010664 VRB Skipping staged alias stagedId (1df001a) finalId: 1010665 VRB Skipping staged alias stagedId (1df001b) finalId: 1010666 VRB Skipping staged alias stagedId (1df001c) finalId: 1010667 VRB Skipping staged alias stagedId (1df001d) finalId: 1010668 VRB Skipping staged alias stagedId (1df001e) finalId: 1010669 VRB Skipping staged alias stagedId (1df001f) finalId: 101066a VRB Skipping staged alias stagedId (1df0020) finalId: 101066b VRB Skipping staged alias stagedId (1df0021) finalId: 101066c VRB Skipping staged alias stagedId (1df0022) finalId: 101066d VRB Skipping staged alias stagedId (1df0023) finalId: 101066e VRB Skipping staged alias stagedId (1df0024) finalId: 101066f VRB Skipping staged alias stagedId (1df0025) finalId: 1010670 VRB Skipping staged alias stagedId (1df0026) finalId: 1010671 VRB Skipping staged alias stagedId (1df0027) finalId: 1010672 VRB Skipping staged alias stagedId (1fe0000) finalId: 1020055 VRB Skipping staged alias stagedId (1fe0001) finalId: 1020056 VRB Skipping staged alias stagedId (1fe0002) finalId: 1020057 VRB Skipping staged alias stagedId (1ff0000) finalId: 101064c INF Regular manifest package... INF Decoding file-resources... INF Decoding values */* XMLs... INF Baksmaling classes.dex... INF Copying assets and libs... INF Copying unknown files... INF Copying original files... DBG [APKTool] Finish decoding APK file: C:\Program Files (x86)\Microsoft Intune Mobile Application Management\Android\App Wrapping Tool\lib\IntuneAppBase.apk DBG [Diagnostic][Begin] App build tool information. DBG [Diagnostic] CompileSdkVersion: 23 DBG [Diagnostic] PlatformBuildVersion: 32 DBG [Diagnostic][End] App build tool information. DBG [Diagnostic][Begin] App dependency information. DBG [Diagnostic][End] App dependency information. DBG [WrapperAgent][Begin] Updating app manifest. DBG [Manifest] Begin merging manifests. DBG [Manifest] Finish merging manifests. INF [Yaml] Input app's minimum API level was raised to MAM minimum API level: 23 INF [Yaml] Updating API level for minSdkVersion to 23. DBG [WrapperAgent][End] Updating app manifest. DBG [WrapperAgent][Begin] Updating app resources. DBG [Res][Begin] Merging app resources. DBG [Res][Begin] Merging app resources of type Animator. DBG [Res][End] Merging app resources of type Animator DBG [Res][Begin] Merging app resources of type Anim. DBG [Res][End] Merging app resources of type Anim DBG [Res][Begin] Merging app resources of type Color. DBG [Res][End] Merging app resources of type Color DBG [Res][Begin] Merging app resources of type Drawable. DBG [Res][End] Merging app resources of type Drawable DBG [Res][Begin] Merging app resources of type MipMap. DBG [Res][End] Merging app resources of type MipMap DBG [Res][Begin] Merging app resources of type Layout. DBG [Res][End] Merging app resources of type Layout DBG [Res][Begin] Merging app resources of type Menu. DBG [Res][End] Merging app resources of type Menu DBG [Res][Begin] Merging app resources of type Raw. DBG [Res][End] Merging app resources of type Raw DBG [Res][Begin] Merging app resources of type Values. DBG [Res][End] Merging app resources of type Values DBG [Res][Begin] Merging app resources of type Xml. DBG [Res][End] Merging app resources of type Xml INF SDK information for the application set to {minSdkVersion=23, targetSdkVersion=32} INF Checking whether resources has changed... INF Building resources... VRB aapt2 compile command ran: VRB [C:\Users\ADMINI~1\AppData\Local\Temp\brut_util_Jar_1339782332901425532762947762014775026.tmp, compile, --dir, C:\Users\ADMINI~1\AppData\Local\Temp\IntuneAppWrappingTool-2285848646729712778\sourceApk\res, --legacy, -o, C:\Users\ADMINI~1\AppData\Local\Temp\IntuneAppWrappingTool-2285848646729712778\sourceApk\build\resources.zip] VRB aapt2 link command ran: VRB [C:\Users\ADMINI~1\AppData\Local\Temp\brut_util_Jar_1339782332901425532762947762014775026.tmp, link, -o, C:\Users\ADMINI~1\AppData\Local\Temp\APKTOOL13048729185674419629.tmp, --min-sdk-version, 23, --target-sdk-version, 32, --no-auto-version, --no-version-vectors, --no-version-transitions, --no-resource-deduping, --allow-reserved-package-id, -0, arsc, -I, C:\Users\ADMINI~1\AppData\Local\Temp\IntuneAppWrappingTool-2285848646729712778\framework\1.apk, --manifest, C:\Users\ADMINI~1\AppData\Local\Temp\IntuneAppWrappingTool-2285848646729712778\sourceApk\AndroidManifest.xml, C:\Users\ADMINI~1\AppData\Local\Temp\IntuneAppWrappingTool-2285848646729712778\sourceApk\build\resources.zip] INF Loading resource table... DBG [Res][End] Merging app resources. DBG [WrapperAgent][End] Updating app resources. DBG [WrapperAgent][Begin] Updating app source code. DBG [Smali] Begin rewriting smali. DBG [Smali] Begin writing rules to file. DBG [Smali] Finish writing rules to file. DBG [Smali] Begin processing folder: C:\Users\ADMINI~1\AppData\Local\Temp\IntuneAppWrappingTool-2285848646729712778\externalApk\smali DBG [Smali] Finish processing folder: C:\Users\ADMINI~1\AppData\Local\Temp\IntuneAppWrappingTool-2285848646729712778\externalApk\smali DBG [Smali] Begin processing folder: C:\Users\ADMINI~1\AppData\Local\Temp\IntuneAppWrappingTool-2285848646729712778\sourceApk\smali DBG [Smali] Finish processing folder: C:\Users\ADMINI~1\AppData\Local\Temp\IntuneAppWrappingTool-2285848646729712778\sourceApk\smali DBG [Smali] Begin processing folder: C:\Users\ADMINI~1\AppData\Local\Temp\IntuneAppWrappingTool-2285848646729712778\sourceApk\smali_classes2 DBG [Smali] Finish processing folder: C:\Users\ADMINI~1\AppData\Local\Temp\IntuneAppWrappingTool-2285848646729712778\sourceApk\smali_classes2 DBG [Res] Reassigning id of resource dimen/offline_startup_app_icon_container_inset from 7f020000 to 7f070300 in class Lcom/microsoft/intune/mam/R$dimen;. DBG [Res] Reassigning id of resource drawable/offline_startup_app_icon_container from 7f030000 to 7f08017f in class Lcom/microsoft/intune/mam/apppackager/R$drawable;. DBG [Res] Reassigning id of resource drawable/offline_startup_app_icon_container from 7f030000 to 7f08017f in class Lcom/microsoft/intune/mam/R$drawable;. DBG [Res] Reassigning id of resource id/offline_logo_textView from 7f040000 to 7f0a035c in class Lcom/microsoft/intune/mam/R$id;. DBG [Res] Reassigning id of resource style/MAMActivityBaseTheme from 7f080000 to 7f1304ad in class Lcom/microsoft/intune/mam/apppackager/R$style;. DBG [Res] Reassigning id of resource style/MAMAlertDialogTheme from 7f080001 to 7f1304ae in class Lcom/microsoft/intune/mam/apppackager/R$style;. DBG [Res] Reassigning id of resource style/MAMButton from 7f080002 to 7f1304af in class Lcom/microsoft/intune/mam/apppackager/R$style;. DBG [Res] Reassigning id of resource style/MAMDialogTheme from 7f080003 to 7f1304b0 in class Lcom/microsoft/intune/mam/apppackager/R$style;. DBG [Res] Reassigning id of resource style/MAMDialogWithTrasparentBackground from 7f080004 to 7f1304b1 in class Lcom/microsoft/intune/mam/apppackager/R$style;. DBG [Res] Reassigning id of resource layout/wg_offline_startup_blocked from 7f050000 to 7f0d00f6 in class Lcom/microsoft/intune/mam/apppackager/R$layout;. DBG [Res] Reassigning id of resource string/intune_account_disallowed from 7f070000 to 7f12014a in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/intune_account_disallowed_fmt from 7f070001 to 7f12014b in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/intune_account_removed_fmt from 7f070002 to 7f12014c in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/intune_allowed_account_explanation from 7f070003 to 7f12014d in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/intune_allowed_accounts_description from 7f070004 to 7f12014e in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/intune_allowed_accounts_explanation_all_added from 7f070005 to 7f12014f in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/intune_allowed_accounts_title from 7f070006 to 7f120150 in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_branding_managed_by from 7f070007 to 7f120151 in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_cancel from 7f070008 to 7f120152 in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_close from 7f070009 to 7f120153 in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_get_the_app from 7f07000a to 7f120154 in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_go_back from 7f07000b to 7f120155 in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_initialization_failure from 7f07000c to 7f120156 in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_learn_more from 7f07000d to 7f120157 in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_mamca_failed_message from 7f07000e to 7f120158 in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_mamca_failed_title from 7f07000f to 7f120159 in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_must_restart from 7f070010 to 7f12015a in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_ok from 7f070011 to 7f12015b in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_policy_required_message from 7f070012 to 7f12015c in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_sharing_blocked_dialog_text from 7f070013 to 7f12015d in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_sharing_blocked_dialog_title from 7f070014 to 7f12015e in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_show_diagnostics_message from 7f070015 to 7f12015f in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_ssp_install_required_message from 7f070016 to 7f120160 in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_ssp_install_required_message_ngms from 7f070017 to 7f120161 in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_ssp_removed_notify_system_wipe from 7f070018 to 7f120162 in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_ssp_removed_notify_wipe from 7f070019 to 7f120163 in class Lcom/microsoft/intune/mam/R$string;. DBG [Res] Reassigning id of resource color/intune_default_background from 7f010000 to 7f0603cb in class Lcom/microsoft/intune/mam/apppackager/R$color;. DBG [Res] Reassigning id of resource color/intune_default_button_color from 7f010001 to 7f0603cc in class Lcom/microsoft/intune/mam/apppackager/R$color;. DBG [Res] Reassigning id of resource string/intune_account_disallowed from 7f070000 to 7f12014a in class Lcom/microsoft/intune/mam/apppackager/R$string;. DBG [Res] Reassigning id of resource string/intune_account_disallowed_fmt from 7f070001 to 7f12014b in class Lcom/microsoft/intune/mam/apppackager/R$string;. DBG [Res] Reassigning id of resource string/intune_account_removed_fmt from 7f070002 to 7f12014c in class Lcom/microsoft/intune/mam/apppackager/R$string;. DBG [Res] Reassigning id of resource string/intune_allowed_account_explanation from 7f070003 to 7f12014d in class Lcom/microsoft/intune/mam/apppackager/R$string;. DBG [Res] Reassigning id of resource string/intune_allowed_accounts_description from 7f070004 to 7f12014e in class Lcom/microsoft/intune/mam/apppackager/R$string;. DBG [Res] Reassigning id of resource string/intune_allowed_accounts_explanation_all_added from 7f070005 to 7f12014f in class Lcom/microsoft/intune/mam/apppackager/R$string;. DBG [Res] Reassigning id of resource string/intune_allowed_accounts_title from 7f070006 to 7f120150 in class Lcom/microsoft/intune/mam/apppackager/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_branding_managed_by from 7f070007 to 7f120151 in class Lcom/microsoft/intune/mam/apppackager/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_cancel from 7f070008 to 7f120152 in class Lcom/microsoft/intune/mam/apppackager/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_close from 7f070009 to 7f120153 in class Lcom/microsoft/intune/mam/apppackager/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_get_the_app from 7f07000a to 7f120154 in class Lcom/microsoft/intune/mam/apppackager/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_go_back from 7f07000b to 7f120155 in class Lcom/microsoft/intune/mam/apppackager/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_initialization_failure from 7f07000c to 7f120156 in class Lcom/microsoft/intune/mam/apppackager/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_learn_more from 7f07000d to 7f120157 in class Lcom/microsoft/intune/mam/apppackager/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_mamca_failed_message from 7f07000e to 7f120158 in class Lcom/microsoft/intune/mam/apppackager/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_mamca_failed_title from 7f07000f to 7f120159 in class Lcom/microsoft/intune/mam/apppackager/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_must_restart from 7f070010 to 7f12015a in class Lcom/microsoft/intune/mam/apppackager/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_ok from 7f070011 to 7f12015b in class Lcom/microsoft/intune/mam/apppackager/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_policy_required_message from 7f070012 to 7f12015c in class Lcom/microsoft/intune/mam/apppackager/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_sharing_blocked_dialog_text from 7f070013 to 7f12015d in class Lcom/microsoft/intune/mam/apppackager/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_sharing_blocked_dialog_title from 7f070014 to 7f12015e in class Lcom/microsoft/intune/mam/apppackager/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_show_diagnostics_message from 7f070015 to 7f12015f in class Lcom/microsoft/intune/mam/apppackager/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_ssp_install_required_message from 7f070016 to 7f120160 in class Lcom/microsoft/intune/mam/apppackager/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_ssp_install_required_message_ngms from 7f070017 to 7f120161 in class Lcom/microsoft/intune/mam/apppackager/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_ssp_removed_notify_system_wipe from 7f070018 to 7f120162 in class Lcom/microsoft/intune/mam/apppackager/R$string;. DBG [Res] Reassigning id of resource string/wg_offline_ssp_removed_notify_wipe from 7f070019 to 7f120163 in class Lcom/microsoft/intune/mam/apppackager/R$string;. DBG [Res] Reassigning id of resource raw/intune_mam_manifest from 7f060000 to 7f1101e9 in class Lcom/microsoft/intune/mam/apppackager/R$raw;. DBG [Res] Reassigning id of resource layout/wg_offline_startup_blocked from 7f050000 to 7f0d00f6 in class Lcom/microsoft/intune/mam/R$layout;. DBG [Res] Reassigning id of resource raw/intune_mam_manifest from 7f060000 to 7f1101e9 in class Lcom/microsoft/intune/mam/R$raw;. DBG [Res] Reassigning id of resource color/intune_default_background from 7f010000 to 7f0603cb in class Lcom/microsoft/intune/mam/R$color;. DBG [Res] Reassigning id of resource color/intune_default_button_color from 7f010001 to 7f0603cc in class Lcom/microsoft/intune/mam/R$color;. DBG [Res] Reassigning id of resource style/MAMActivityBaseTheme from 7f080000 to 7f1304ad in class Lcom/microsoft/intune/mam/R$style;. DBG [Res] Reassigning id of resource style/MAMAlertDialogTheme from 7f080001 to 7f1304ae in class Lcom/microsoft/intune/mam/R$style;. DBG [Res] Reassigning id of resource style/MAMButton from 7f080002 to 7f1304af in class Lcom/microsoft/intune/mam/R$style;. DBG [Res] Reassigning id of resource style/MAMDialogTheme from 7f080003 to 7f1304b0 in class Lcom/microsoft/intune/mam/R$style;. DBG [Res] Reassigning id of resource style/MAMDialogWithTrasparentBackground from 7f080004 to 7f1304b1 in class Lcom/microsoft/intune/mam/R$style;. DBG [Res] Reassigning id of resource dimen/offline_startup_app_icon_container_inset from 7f020000 to 7f070300 in class Lcom/microsoft/intune/mam/apppackager/R$dimen;. DBG [Res] Reassigning id of resource id/offline_logo_textView from 7f040000 to 7f0a035c in class Lcom/microsoft/intune/mam/apppackager/R$id;. DBG [Smali] Finish rewriting smali. DBG [WrapperAgent][End] Updating app source code. DBG [APKTool] Begin encoding directory into APK file: C:\Users\ADMINI~1\AppData\Local\Temp\IntuneAppWrappingTool-2285848646729712778\sourceApk INF Using Apktool 2.7.0 INF Copying C:\Users\ADMINI~1\AppData\Local\Temp\IntuneAppWrappingTool-2285848646729712778\sourceApk classes.dex file... INF Copying C:\Users\ADMINI~1\AppData\Local\Temp\IntuneAppWrappingTool-2285848646729712778\sourceApk classes2.dex file... INF Checking whether resources has changed... INF Building resources... VRB aapt2 compile command ran: VRB [C:\Users\ADMINI~1\AppData\Local\Temp\brut_util_Jar_1339782332901425532762947762014775026.tmp, compile, --dir, C:\Users\ADMINI~1\AppData\Local\Temp\IntuneAppWrappingTool-2285848646729712778\sourceApk\res, --legacy, -o, C:\Users\ADMINI~1\AppData\Local\Temp\IntuneAppWrappingTool-2285848646729712778\sourceApk\build\resources.zip] VRB aapt2 link command ran: VRB [C:\Users\ADMINI~1\AppData\Local\Temp\brut_util_Jar_1339782332901425532762947762014775026.tmp, link, -o, C:\Users\ADMINI~1\AppData\Local\Temp\APKTOOL9282898249109600812.tmp, --package-id, 127, --min-sdk-version, 23, --target-sdk-version, 32, --version-code, 83, --version-name, 1.6.23, --no-auto-version, --no-version-vectors, --no-version-transitions, --no-resource-deduping, --allow-reserved-package-id, -e, C:\Users\ADMINI~1\AppData\Local\Temp\APKTOOL4605903261272301662.tmp, -0, arsc, -I, C:\Users\ADMINI~1\AppData\Local\Temp\IntuneAppWrappingTool-2285848646729712778\framework\1.apk, --manifest, C:\Users\ADMINI~1\AppData\Local\Temp\IntuneAppWrappingTool-2285848646729712778\sourceApk\AndroidManifest.xml, C:\Users\ADMINI~1\AppData\Local\Temp\IntuneAppWrappingTool-2285848646729712778\sourceApk\build\resources.zip] INF Copying libs... (/kotlin) INF Copying libs... (/META-INF/services) INF Copy original files... INF Copy stamp-cert-sha256... INF Copy META-INF... INF Building apk file... INF Copying unknown files/dir... VRB Copying unknown file DebugProbesKt.bin with method 8 VRB Copying unknown file billing.properties with method 8 VRB Copying unknown file core.properties with method 8 VRB Copying unknown file firebase-analytics.properties with method 8 VRB Copying unknown file firebase-annotations.properties with method 8 VRB Copying unknown file firebase-common.properties with method 8 VRB Copying unknown file firebase-components.properties with method 8 VRB Copying unknown file firebase-crashlytics.properties with method 8 VRB Copying unknown file firebase-encoders-json.properties with method 8 VRB Copying unknown file firebase-encoders-proto.properties with method 8 VRB Copying unknown file firebase-encoders.properties with method 8 VRB Copying unknown file firebase-iid-interop.properties with method 8 VRB Copying unknown file firebase-iid.properties with method 8 VRB Copying unknown file firebase-installations-interop.properties with method 8 VRB Copying unknown file firebase-installations.properties with method 8 VRB Copying unknown file firebase-measurement-connector.properties with method 8 VRB Copying unknown file firebase-messaging.properties with method 8 VRB Copying unknown file play-services-ads-base.properties with method 8 VRB Copying unknown file play-services-ads-identifier.properties with method 8 VRB Copying unknown file play-services-ads-lite.properties with method 8 VRB Copying unknown file play-services-ads.properties with method 8 VRB Copying unknown file play-services-appset.properties with method 8 VRB Copying unknown file play-services-auth-api-phone.properties with method 8 VRB Copying unknown file play-services-auth-base.properties with method 8 VRB Copying unknown file play-services-auth.properties with method 8 VRB Copying unknown file play-services-base.properties with method 8 VRB Copying unknown file play-services-basement.properties with method 8 VRB Copying unknown file play-services-measurement-api.properties with method 8 VRB Copying unknown file play-services-measurement-base.properties with method 8 VRB Copying unknown file play-services-measurement-impl.properties with method 8 VRB Copying unknown file play-services-measurement-sdk-api.properties with method 8 VRB Copying unknown file play-services-measurement-sdk.properties with method 8 VRB Copying unknown file play-services-measurement.properties with method 8 VRB Copying unknown file play-services-stats.properties with method 8 VRB Copying unknown file play-services-tasks.properties with method 8 VRB Copying unknown file transport-api.properties with method 8 VRB Copying unknown file transport-backend-cct.properties with method 8 VRB Copying unknown file transport-runtime.properties with method 8 VRB Copying unknown file user-messaging-platform.properties with method 8 VRB Copying unknown file stamp-cert-sha256 with method 8 DBG [APKTool] Finish encoding directory into APK file: C:\Users\ADMINI~1\AppData\Local\Temp\IntuneAppWrappingTool-2285848646729712778\sourceApk ERR Failed to package app. com.microsoft.intune.mam.apppackager.utils.AppPackagerException: Failed to build apk file. com.microsoft.intune.mam.apppackager.utils.APKToolWrapper.encodeAPK(APKToolWrapper.java:189) com.microsoft.intune.mam.apppackager.AppPackager.packageApp(AppPackager.java:88) com.microsoft.intune.mam.apppackager.PackagerMain.mainInternal(PackagerMain.java:237) com.microsoft.intune.mam.apppackager.PackagerMain.main(PackagerMain.java:59) brut.androlib.AndrolibException: java.util.zip.ZipException: duplicate entry: stamp-cert-sha256 brut.androlib.Androlib.buildUnknownFiles(Androlib.java:676) brut.androlib.Androlib.build(Androlib.java:330) com.microsoft.intune.mam.apppackager.utils.APKToolWrapper.encodeAPK(APKToolWrapper.java:186) com.microsoft.intune.mam.apppackager.AppPackager.packageApp(AppPackager.java:88) com.microsoft.intune.mam.apppackager.PackagerMain.mainInternal(PackagerMain.java:237) com.microsoft.intune.mam.apppackager.PackagerMain.main(PackagerMain.java:59) java.util.zip.ZipException: duplicate entry: stamp-cert-sha256 java.base/java.util.zip.ZipOutputStream.putNextEntry(ZipOutputStream.java:233) brut.androlib.Androlib.copyUnknownFiles(Androlib.java:736) brut.androlib.Androlib.buildUnknownFiles(Androlib.java:674) brut.androlib.Androlib.build(Androlib.java:330) com.microsoft.intune.mam.apppackager.utils.APKToolWrapper.encodeAPK(APKToolWrapper.java:186) com.microsoft.intune.mam.apppackager.AppPackager.packageApp(AppPackager.java:88) com.microsoft.intune.mam.apppackager.PackagerMain.mainInternal(PackagerMain.java:237) com.microsoft.intune.mam.apppackager.PackagerMain.main(PackagerMain.java:59) ERR Failed to build apk file. WRN Verbose logs can be found at: C:\Users\ADMINI~1\AppData\Local\Temp\IntuneAppWrappingToolLog_20230221_220440.txt. ERR The application could not be wrapped.

rs5173 commented 1 year ago

How can I solve this problem?

mcsimons commented 1 year ago

Hello, thanks for the report. In order for us to properly investigate this, please re-file this report and supply all the information outlined in our provided issue template https://github.com/msintuneappsdk/intune-app-wrapping-tool-android/issues/new/choose Thank you