Build release APK and upload to google play

hello
i have complete my project
and build my F7 app
npm run build-cordova-prod
then i APK sgin with program
https://shatter-box.com/download/apk-signer/
then i upload my apk to goolge play but i get this problem

Maybe you’ve signed the APK with the ‘debug’ key. Those builds cannot be uploaded to the Play store. I use portecle.jar (a simple java keystore tool) to manage my sign keys.

hello
i have signed my apk
but i have some error message

Hi anasprogrammer1,
Read Tim reply carefully. He is suggesting you signed your app with a ‘DEBUG’ key, so you need a ‘RELEASE’ key to upload your app to the store.

pleas read this doc:

https://developer.android.com/studio/publish/app-signing

1 Like

For more information on the sign process, you can check the following page:

1 Like

how to build RELEASE with framework7 cli ??

you dont build a release apk. you just build an apk with f7. then you need ti sign it FOR RELEASE

again, read Tim’s reply

1 Like

this how build and sign app with android sudio
my app build with F7 cli

Step 1:

keytool -genkey -v -keystore my-release-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000

Step 2:

jarsigner -keystore YOUR_KEYSTORE_PATH -storepass YOUR_KEYSTORE_PASSWORD app/build/outputs/apk/release/app-release-unsigned.apk YOUR_KEY_ALIAS

Step 3:

your_android-sdk_path/android-sdk/build-tools/your_build_tools_version/zipalign -v 4 app/build/outputs/apk/release/app-release-unsigned.apk release.apk

full answer:

OK , i will try it , then call u

[quote="pvtallulah, post:9, topic:6831"]
zipalign -v 4 app/build/outputs/apk/release/app-release-unsigned.apk release.apk
[/quote]

PS C:\Users\Lenovo\AppData\Local\Android\Sdk\build-tools\28.0.3> zipalign -v 4 C:\Users\Lenovo\Documents\APK\app-debug.apk release.apk
zipalign : The term 'zipalign' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ zipalign -v 4 C:\Users\Lenovo\Documents\APK\app-debug.apk release.apk
+ ~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (zipalign:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\Lenovo\Documents\APK> zipalign -v 4 app-debug.apk release.apk

Verifying alignment of release.apk (4)…
49 AndroidManifest.xml (OK - compressed)
1703 META-INF/CERT.RSA (OK - compressed)
2765 META-INF/CERT.SF (OK - compressed)
24551 META-INF/MANIFEST.MF (OK - compressed)
45955 assets/www/cordova-js-src/android/nativeapiprovider.js (OK - compressed)
46736 assets/www/cordova-js-src/android/promptbasednativeapi.js (OK - compressed)
47562 assets/www/cordova-js-src/exec.js (OK - compressed)
51547 assets/www/cordova-js-src/platform.js (OK - compressed)
53571 assets/www/cordova-js-src/plugin/android/app.js (OK - compressed)
55178 assets/www/cordova.js (OK - compressed)
75597 assets/www/cordova_plugins.js (OK - compressed)
76966 assets/www/css/app.css (OK - compressed)
172767 assets/www/css/app.css.map (OK - compressed)
308232 assets/www/fonts/Framework7Icons-Regular.eot (OK - compressed)
356999 assets/www/fonts/Framework7Icons-Regular.ttf (OK - compressed)
405663 assets/www/fonts/Framework7Icons-Regular.woff (OK - compressed)
450160 assets/www/fonts/Framework7Icons-Regular.woff2 (OK)
485044 assets/www/fonts/MaterialIcons-Regular.eot (OK - compressed)
560102 assets/www/fonts/MaterialIcons-Regular.ttf (OK - compressed)
626354 assets/www/fonts/MaterialIcons-Regular.woff (OK - compressed)
684047 assets/www/fonts/MaterialIcons-Regular.woff2 (BAD - 3)
728409 assets/www/images/home.png (BAD - 1)
984535 assets/www/index.html (OK - compressed)
985209 assets/www/js/app.js (OK - compressed)
1262142 assets/www/js/app.js.map (OK - compressed)
2104503 assets/www/plugins/com.santinowu.cordova.imagedownloader/www/imagedownloader.js (OK - compressed)
2104885 assets/www/plugins/cordova-plugin-android-permissions/www/permissions.js (OK - compressed)
2107586 assets/www/plugins/cordova-plugin-camera/www/Camera.js (OK - compressed)
2110911 assets/www/plugins/cordova-plugin-camera/www/CameraConstants.js (OK - compressed)
2112432 assets/www/plugins/cordova-plugin-camera/www/CameraPopoverHandle.js (OK - compressed)
2113202 assets/www/plugins/cordova-plugin-camera/www/CameraPopoverOptions.js (OK - compressed)
2114353 assets/www/plugins/cordova-plugin-file-transfer/www/FileTransfer.js (OK - compressed)
2117403 assets/www/plugins/cordova-plugin-file-transfer/www/FileTransferError.js (OK - compressed)
2118240 assets/www/plugins/cordova-plugin-file/www/DirectoryEntry.js (OK - compressed)
2119885 assets/www/plugins/cordova-plugin-file/www/DirectoryReader.js (OK - compressed)
2121144 assets/www/plugins/cordova-plugin-file/www/Entry.js (OK - compressed)
2124034 assets/www/plugins/cordova-plugin-file/www/File.js (OK - compressed)
2125342 assets/www/plugins/cordova-plugin-file/www/FileEntry.js (OK - compressed)
2126854 assets/www/plugins/cordova-plugin-file/www/FileError.js (OK - compressed)
2127732 assets/www/plugins/cordova-plugin-file/www/FileReader.js (OK - compressed)
2131272 assets/www/plugins/cordova-plugin-file/www/FileSystem.js (OK - compressed)
2132359 assets/www/plugins/cordova-plugin-file/www/FileUploadOptions.js (OK - compressed)
2133346 assets/www/plugins/cordova-plugin-file/www/FileUploadResult.js (OK - compressed)
2134055 assets/www/plugins/cordova-plugin-file/www/FileWriter.js (OK - compressed)
2137224 assets/www/plugins/cordova-plugin-file/www/Flags.js (OK - compressed)
2138039 assets/www/plugins/cordova-plugin-file/www/LocalFileSystem.js (OK - compressed)
2138689 assets/www/plugins/cordova-plugin-file/www/Metadata.js (OK - compressed)
2139539 assets/www/plugins/cordova-plugin-file/www/ProgressEvent.js (OK - compressed)
2140802 assets/www/plugins/cordova-plugin-file/www/android/FileSystem.js (OK - compressed)
2141916 assets/www/plugins/cordova-plugin-file/www/browser/isChrome.js (OK - compressed)
2142675 assets/www/plugins/cordova-plugin-file/www/fileSystemPaths.js (OK - compressed)
2143909 assets/www/plugins/cordova-plugin-file/www/fileSystems-roots.js (OK - compressed)
2144841 assets/www/plugins/cordova-plugin-file/www/fileSystems.js (OK - compressed)
2145550 assets/www/plugins/cordova-plugin-file/www/requestFileSystem.js (OK - compressed)
2146992 assets/www/plugins/cordova-plugin-file/www/resolveLocalFileSystemURI.js (OK - compressed)
2148813 assets/www/plugins/cordova-plugin-filepath/www/FilePath.js (OK - compressed)
2149190 assets/www/plugins/cordova-plugin-keyboard/www/keyboard.js (OK - compressed)
2150402 assets/www/plugins/cordova-plugin-media/www/Media.js (OK - compressed)
2152987 assets/www/plugins/cordova-plugin-media/www/MediaError.js (OK - compressed)
2154169 assets/www/plugins/cordova-plugin-photo-library/www/PhotoLibrary.js (OK - compressed)
2156991 assets/www/plugins/cordova-plugin-photo-library/www/async/dist/async.min.js (OK - compressed)
2166314 assets/www/plugins/cordova-plugin-photo-library/www/async/dist/async.min.map (OK - compressed)
2166501 assets/www/plugins/cordova-plugin-splashscreen/www/splashscreen.js (OK - compressed)
2167221 assets/www/plugins/cordova-plugin-statusbar/www/statusbar.js (OK - compressed)
2168612 assets/www/static/about.png (OK)
2170870 assets/www/static/about01.png (BAD - 2)
2176090 assets/www/static/cordova.js (OK - compressed)
2196527 assets/www/static/home.png (BAD - 3)
2452659 assets/www/static/img/1.jpg (BAD - 3)
2548535 assets/www/static/img/2.jpg (BAD - 3)
2584029 assets/www/static/img/3.jpg (BAD - 1)
2635337 assets/www/static/img/4.jpg (BAD - 1)
2759323 assets/www/static/lib/algorithmia-0.2.0.js (OK - compressed)
2761181 assets/www/static/lib/cordova.js (OK - compressed)
2781608 assets/www/static/lib/firebase-app.js (OK - compressed)
2796641 assets/www/static/lib/firebase-auth.js (OK - compressed)
2854591 assets/www/static/lib/firebase-storage.js (OK - compressed)
2867244 assets/www/static/lib/jquery-3.4.0.min.js (OK - compressed)
2903050 assets/www/static/lib/jquery.fileupload.min.js (OK - compressed)
2909871 assets/www/static/lib/test.js (BAD - 3)
2909912 classes.dex (OK - compressed)
2924204 classes2.dex (OK - compressed)
3046156 classes3.dex (OK - compressed)
3065837 classes4.dex (OK - compressed)
3090992 classes5.dex (OK - compressed)
3103503 classes6.dex (OK - compressed)
3997282 res/anim/abc_fade_in.xml (OK - compressed)
3997554 res/anim/abc_fade_out.xml (OK - compressed)
3997843 res/anim/abc_grow_fade_in_from_bottom.xml (OK - compressed)
3998277 res/anim/abc_popup_enter.xml (OK - compressed)
3998592 res/anim/abc_popup_exit.xml (OK - compressed)
3998926 res/anim/abc_shrink_fade_out_from_bottom.xml (OK - compressed)
3999364 res/anim/abc_slide_in_bottom.xml (OK - compressed)
3999651 res/anim/abc_slide_in_top.xml (OK - compressed)
3999943 res/anim/abc_slide_out_bottom.xml (OK - compressed)
4000230 res/anim/abc_slide_out_top.xml (OK - compressed)
4000554 res/color-v11/abc_background_cache_hint_selector_material_dark.xml (OK - compressed)
4000881 res/color-v11/abc_background_cache_hint_selector_material_light.xml (OK - compressed)
4001199 res/color-v23/abc_btn_colored_borderless_text_material.xml (OK - compressed)
4001518 res/color-v23/abc_btn_colored_text_material.xml (OK - compressed)
4001836 res/color-v23/abc_color_highlight_material.xml (OK - compressed)
4002164 res/color-v23/abc_tint_btn_checkable.xml (OK - compressed)
4002501 res/color-v23/abc_tint_default.xml (OK - compressed)
4002936 res/color-v23/abc_tint_edittext.xml (OK - compressed)
4003286 res/color-v23/abc_tint_seek_thumb.xml (OK - compressed)
4003593 res/color-v23/abc_tint_spinner.xml (OK - compressed)
4003945 res/color-v23/abc_tint_switch_thumb.xml (OK - compressed)
4004287 res/color-v23/abc_tint_switch_track.xml (OK - compressed)
4004652 res/color/abc_btn_colored_borderless_text_material.xml (OK - compressed)
4004999 res/color/abc_btn_colored_text_material.xml (OK - compressed)
4005348 res/color/abc_hint_foreground_material_dark.xml (OK - compressed)
4005686 res/color/abc_hint_foreground_material_light.xml (OK - compressed)
4006033 res/color/abc_primary_text_disable_only_material_dark.xml (OK - compressed)
4006349 res/color/abc_primary_text_disable_only_material_light.xml (OK - compressed)
4006651 res/color/abc_primary_text_material_dark.xml (OK - compressed)
4006954 res/color/abc_primary_text_material_light.xml (OK - compressed)
4007245 res/color/abc_search_url_text.xml (OK - compressed)
4007571 res/color/abc_secondary_text_material_dark.xml (OK - compressed)
4007877 res/color/abc_secondary_text_material_light.xml (OK - compressed)
4008171 res/color/abc_tint_btn_checkable.xml (OK - compressed)
4008537 res/color/abc_tint_default.xml (OK - compressed)
4009003 res/color/abc_tint_edittext.xml (OK - compressed)
4009381 res/color/abc_tint_seek_thumb.xml (OK - compressed)
4009713 res/color/abc_tint_spinner.xml (OK - compressed)
4010092 res/color/abc_tint_switch_thumb.xml (OK - compressed)
4010463 res/color/abc_tint_switch_track.xml (OK - compressed)
4010843 res/color/switch_thumb_material_dark.xml (OK - compressed)
4011141 res/color/switch_thumb_material_light.xml (OK - compressed)
4011463 res/drawable-hdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png (BAD - 3)
4011818 res/drawable-hdpi-v4/abc_btn_check_to_on_mtrl_000.png (BAD - 2)
4012134 res/drawable-hdpi-v4/abc_btn_check_to_on_mtrl_015.png (BAD - 2)
4012628 res/drawable-hdpi-v4/abc_btn_radio_to_on_mtrl_000.png (OK)
4013184 res/drawable-hdpi-v4/abc_btn_radio_to_on_mtrl_015.png (OK)
4013841 res/drawable-hdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png (BAD - 1)
4015025 res/drawable-hdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png (BAD - 1)
4016367 res/drawable-hdpi-v4/abc_cab_background_top_mtrl_alpha.9.png (BAD - 3)
4016683 res/drawable-hdpi-v4/abc_ic_commit_search_api_mtrl_alpha.png (BAD - 3)
4016945 res/drawable-hdpi-v4/abc_ic_menu_copy_mtrl_am_alpha.png (BAD - 1)
4017235 res/drawable-hdpi-v4/abc_ic_menu_cut_mtrl_alpha.png (BAD - 3)
4017731 res/drawable-hdpi-v4/abc_ic_menu_paste_mtrl_am_alpha.png (BAD - 3)
4018053 res/drawable-hdpi-v4/abc_ic_menu_selectall_mtrl_alpha.png (BAD - 1)
4018360 res/drawable-hdpi-v4/abc_ic_menu_share_mtrl_alpha.png (OK)
4018833 res/drawable-hdpi-v4/abc_ic_star_black_16dp.png (BAD - 1)
4019179 res/drawable-hdpi-v4/abc_ic_star_black_36dp.png (BAD - 3)
4019784 res/drawable-hdpi-v4/abc_ic_star_black_48dp.png (OK)
4020543 res/drawable-hdpi-v4/abc_ic_star_half_black_16dp.png (BAD - 3)
4020831 res/drawable-hdpi-v4/abc_ic_star_half_black_36dp.png (BAD - 3)
4021250 res/drawable-hdpi-v4/abc_ic_star_half_black_48dp.png (BAD - 2)
4021774 res/drawable-hdpi-v4/abc_list_divider_mtrl_alpha.9.png (BAD - 2)
4022019 res/drawable-hdpi-v4/abc_list_focused_holo.9.png (BAD - 3)
4022352 res/drawable-hdpi-v4/abc_list_longpressed_holo.9.png (OK)
4022647 res/drawable-hdpi-v4/abc_list_pressed_holo_dark.9.png (BAD - 3)
4022945 res/drawable-hdpi-v4/abc_list_pressed_holo_light.9.png (BAD - 1)
4023252 res/drawable-hdpi-v4/abc_list_selector_disabled_holo_dark.9.png (OK)
4023583 res/drawable-hdpi-v4/abc_list_selector_disabled_holo_light.9.png (BAD - 3)
4023908 res/drawable-hdpi-v4/abc_menu_hardkey_panel_mtrl_mult.9.png (OK)
4024740 res/drawable-hdpi-v4/abc_popup_background_mtrl_mult.9.png (OK)
4025935 res/drawable-hdpi-v4/abc_scrubber_control_off_mtrl_alpha.png (BAD - 3)
4026238 res/drawable-hdpi-v4/abc_scrubber_control_to_pressed_mtrl_000.png (BAD - 2)
4026535 res/drawable-hdpi-v4/abc_scrubber_control_to_pressed_mtrl_005.png (BAD - 3)
4026895 res/drawable-hdpi-v4/abc_scrubber_primary_mtrl_alpha.9.png (BAD - 3)
4027193 res/drawable-hdpi-v4/abc_scrubber_track_mtrl_alpha.9.png (BAD - 1)
4027478 res/drawable-hdpi-v4/abc_spinner_mtrl_am_alpha.9.png (BAD - 2)
4027907 res/drawable-hdpi-v4/abc_switch_track_mtrl_alpha.9.png (BAD - 3)
4028476 res/drawable-hdpi-v4/abc_tab_indicator_mtrl_alpha.9.png (OK)
4028765 res/drawable-hdpi-v4/abc_text_select_handle_left_mtrl_dark.png (BAD - 1)
4029136 res/drawable-hdpi-v4/abc_text_select_handle_left_mtrl_light.png (OK)
4029515 res/drawable-hdpi-v4/abc_text_select_handle_middle_mtrl_dark.png (BAD - 3)
4030014 res/drawable-hdpi-v4/abc_text_select_handle_middle_mtrl_light.png (BAD - 2)
4030509 res/drawable-hdpi-v4/abc_text_select_handle_right_mtrl_dark.png (BAD - 1)
4030873 res/drawable-hdpi-v4/abc_text_select_handle_right_mtrl_light.png (BAD - 1)
4031232 res/drawable-hdpi-v4/abc_textfield_activated_mtrl_alpha.9.png (OK)
4031514 res/drawable-hdpi-v4/abc_textfield_default_mtrl_alpha.9.png (BAD - 2)
4031813 res/drawable-hdpi-v4/abc_textfield_search_activated_mtrl_alpha.9.png (BAD - 1)
4032093 res/drawable-hdpi-v4/abc_textfield_search_default_mtrl_alpha.9.png (BAD - 1)
4032360 res/drawable-hdpi-v4/notification_bg_low_normal.9.png (OK)
4032662 res/drawable-hdpi-v4/notification_bg_low_pressed.9.png (BAD - 2)
4032972 res/drawable-hdpi-v4/notification_bg_normal.9.png (OK)
4033278 res/drawable-hdpi-v4/notification_bg_normal_pressed.9.png (BAD - 2)
4033597 res/drawable-hdpi-v4/notify_panel_notification_icon_bg.png (BAD - 1)
4033776 res/drawable-land-hdpi-v4/screen.png (OK)
4529981 res/drawable-land-mdpi-v4/screen.png (BAD - 1)
4768869 res/drawable-land-xhdpi-v4/screen.png (BAD - 1)
5609805 res/drawable-land-xxhdpi-v4/screen.png (BAD - 1)
7318577 res/drawable-land-xxxhdpi-v4/screen.png (BAD - 1)
10148274 res/drawable-ldrtl-hdpi-v17/abc_ic_menu_copy_mtrl_am_alpha.png (BAD - 2)
10148568 res/drawable-ldrtl-hdpi-v17/abc_ic_menu_cut_mtrl_alpha.png (OK)
10149057 res/drawable-ldrtl-hdpi-v17/abc_spinner_mtrl_am_alpha.9.png (BAD - 1)
10149500 res/drawable-ldrtl-mdpi-v17/abc_ic_menu_copy_mtrl_am_alpha.png (OK)
10149722 res/drawable-ldrtl-mdpi-v17/abc_ic_menu_cut_mtrl_alpha.png (BAD - 2)
10150071 res/drawable-ldrtl-mdpi-v17/abc_spinner_mtrl_am_alpha.9.png (BAD - 3)
10150488 res/drawable-ldrtl-xhdpi-v17/abc_ic_menu_copy_mtrl_am_alpha.png (OK)
10150755 res/drawable-ldrtl-xhdpi-v17/abc_ic_menu_cut_mtrl_alpha.png (BAD - 3)
10151345 res/drawable-ldrtl-xhdpi-v17/abc_spinner_mtrl_am_alpha.9.png (BAD - 1)
10151865 res/drawable-ldrtl-xxhdpi-v17/abc_ic_menu_copy_mtrl_am_alpha.png (BAD - 1)
10152221 res/drawable-ldrtl-xxhdpi-v17/abc_ic_menu_cut_mtrl_alpha.png (BAD - 1)
10153026 res/drawable-ldrtl-xxhdpi-v17/abc_spinner_mtrl_am_alpha.9.png (BAD - 2)
10153655 res/drawable-ldrtl-xxxhdpi-v17/abc_ic_menu_copy_mtrl_am_alpha.png (BAD - 3)
10154077 res/drawable-ldrtl-xxxhdpi-v17/abc_ic_menu_cut_mtrl_alpha.png (BAD - 1)
10155074 res/drawable-ldrtl-xxxhdpi-v17/abc_spinner_mtrl_am_alpha.9.png (BAD - 2)
10155602 res/drawable-mdpi-v4/abc_ab_share_pack_mtrl_alpha.9.png (BAD - 2)
10155959 res/drawable-mdpi-v4/abc_btn_check_to_on_mtrl_000.png (BAD - 3)
10156262 res/drawable-mdpi-v4/abc_btn_check_to_on_mtrl_015.png (BAD - 2)
10156666 res/drawable-mdpi-v4/abc_btn_radio_to_on_mtrl_000.png (BAD - 2)
10157080 res/drawable-mdpi-v4/abc_btn_radio_to_on_mtrl_015.png (OK)
10157530 res/drawable-mdpi-v4/abc_btn_switch_to_on_mtrl_00001.9.png (BAD - 2)
10158378 res/drawable-mdpi-v4/abc_btn_switch_to_on_mtrl_00012.9.png (BAD - 2)
10159302 res/drawable-mdpi-v4/abc_cab_background_top_mtrl_alpha.9.png (BAD - 2)
10159617 res/drawable-mdpi-v4/abc_ic_commit_search_api_mtrl_alpha.png (BAD - 1)
10159875 res/drawable-mdpi-v4/abc_ic_menu_copy_mtrl_am_alpha.png (BAD - 3)
10160095 res/drawable-mdpi-v4/abc_ic_menu_cut_mtrl_alpha.png (BAD - 3)
10160432 res/drawable-mdpi-v4/abc_ic_menu_paste_mtrl_am_alpha.png (OK)
10160678 res/drawable-mdpi-v4/abc_ic_menu_selectall_mtrl_alpha.png (BAD - 2)
10160907 res/drawable-mdpi-v4/abc_ic_menu_share_mtrl_alpha.png (BAD - 3)
10161260 res/drawable-mdpi-v4/abc_ic_star_black_16dp.png (OK)
10161536 res/drawable-mdpi-v4/abc_ic_star_black_36dp.png (OK)
10161984 res/drawable-mdpi-v4/abc_ic_star_black_48dp.png (OK)
10162542 res/drawable-mdpi-v4/abc_ic_star_half_black_16dp.png (BAD - 2)
10162777 res/drawable-mdpi-v4/abc_ic_star_half_black_36dp.png (BAD - 1)
10163112 res/drawable-mdpi-v4/abc_ic_star_half_black_48dp.png (OK)
10163515 res/drawable-mdpi-v4/abc_list_divider_mtrl_alpha.9.png (BAD - 3)
10163766 res/drawable-mdpi-v4/abc_list_focused_holo.9.png (BAD - 2)
10164077 res/drawable-mdpi-v4/abc_list_longpressed_holo.9.png (BAD - 1)
10164377 res/drawable-mdpi-v4/abc_list_pressed_holo_dark.9.png (BAD - 1)
10164675 res/drawable-mdpi-v4/abc_list_pressed_holo_light.9.png (BAD - 3)
10164982 res/drawable-mdpi-v4/abc_list_selector_disabled_holo_dark.9.png (BAD - 2)
10165300 res/drawable-mdpi-v4/abc_list_selector_disabled_holo_light.9.png (OK)
10165613 res/drawable-mdpi-v4/abc_menu_hardkey_panel_mtrl_mult.9.png (BAD - 1)
10166250 res/drawable-mdpi-v4/abc_popup_background_mtrl_mult.9.png (BAD - 2)
10167123 res/drawable-mdpi-v4/abc_scrubber_control_off_mtrl_alpha.png (BAD - 3)
10167377 res/drawable-mdpi-v4/abc_scrubber_control_to_pressed_mtrl_000.png (BAD - 1)
10167624 res/drawable-mdpi-v4/abc_scrubber_control_to_pressed_mtrl_005.png (OK)
10167916 res/drawable-mdpi-v4/abc_scrubber_primary_mtrl_alpha.9.png (OK)
10168212 res/drawable-mdpi-v4/abc_scrubber_track_mtrl_alpha.9.png (OK)
10168497 res/drawable-mdpi-v4/abc_spinner_mtrl_am_alpha.9.png (BAD - 1)
10168917 res/drawable-mdpi-v4/abc_switch_track_mtrl_alpha.9.png (BAD - 1)
10169403 res/drawable-mdpi-v4/abc_tab_indicator_mtrl_alpha.9.png (BAD - 3)
10169688 res/drawable-mdpi-v4/abc_text_select_handle_left_mtrl_dark.png (OK)

16412789 res/layout/select_dialog_item_material.xml (OK - compressed)
16413219 res/layout/select_dialog_multichoice_material.xml (OK - compressed)
16413743 res/layout/select_dialog_singlechoice_material.xml (OK - compressed)
16414268 res/layout/support_simple_spinner_dropdown_item.xml (OK - compressed)
16414609 res/mipmap-hdpi-v4/ic_launcher.png (BAD - 1)
16418138 res/mipmap-ldpi-v4/ic_launcher.png (BAD - 2)
16421786 res/mipmap-mdpi-v4/ic_launcher.png (BAD - 2)
16423933 res/mipmap-xhdpi-v4/ic_launcher.png (BAD - 1)
16428792 res/mipmap-xxhdpi-v4/ic_launcher.png (OK)
16436580 res/mipmap-xxxhdpi-v4/ic_launcher.png (OK)
16447491 res/xml/camera_provider_paths.xml (OK - compressed)
16447745 res/xml/config.xml (OK - compressed)
16450343 resources.arsc (BAD - 3)
Verification FAILED

same error

Check cordova apl signing docs https://cordova.apache.org/docs/en/latest/guide/platforms/android/index.html#signing-an-app

And Android docs https://developer.android.com/studio/publish/app-signing#generate-key

I usually do it in other my way.

  1. Generate production keystore using keytool cli
  2. Put this keystore file in cordova/ folder
  3. Add it to build.json like in cordova docs
  4. Run cordova build android --release --buildConfig

That is all, i get signed APK

2 Likes

hello
can you give me a full commend to build with keystore

Framework7 cordova build androud … ??

Basically google supports all type of apk and help them for the further use in the market.

Sorry to dig up this from the past but just wanted to let you what I did to resolve this:

  1. I following the instructions indicated in https://developer.android.com/studio/publish/app-signing#generate-key - Note that you will need to install the Android Studio.

  2. I then copied the keystore file into the project’s cordova folder.

  3. I then created the file build.json under the cordova folder with the following:

    {
    “android”: {
    “debug”: {
    “keystore”: “key-store.jks”,
    “storePassword”: “password”,
    “alias”: “alias”,
    “password”: “password”,
    “keystoreType”: “”
    },
    “release”: {
    “keystore”: “key-store.jks”,
    “storePassword”: “password”,
    “alias”: “alias”,
    “password”: “password”,
    “keystoreType”: “”
    }
    }
    }

  4. Lastly, I opened the command prompt and when into the project’s cordova folder and ran the following command: cordova build android --release --buildConfig
    Note that if you get errors, check your alias and passwords if entered correctly in the build.json file.