{"id":1295,"date":"2022-09-29T07:51:47","date_gmt":"2022-09-29T07:51:47","guid":{"rendered":"http:\/\/www.netexl.com\/blog\/?p=1295"},"modified":"2026-04-02T09:19:58","modified_gmt":"2026-04-02T09:19:58","slug":"migrate-to-cordova-11-0-0","status":"publish","type":"post","link":"https:\/\/www.netexl.com\/blog\/migrate-to-cordova-11-0-0\/","title":{"rendered":"Migrate to cordova 11.0.0"},"content":{"rendered":"\n<p>Google Play Store has updated the target API level requirements. All app submissions are required to target Android 12 (API level 31) or higher. Cordova developers also need to upgrade to cordova-android 11.0.0. Check out following link for cordova update instructions.<\/p>\n\n\n\n<p><a href=\"https:\/\/www.netexl.com\/blog\/use-cordova-to-compile-html5-games-to-android-app\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.netexl.com\/blog\/use-cordova-to-compile-html5-games-to-android-app\/<\/a><\/p>\n\n\n\n<p>Once we update to cordova version 11 there are a few dependencies which also need to be updated.<\/p>\n\n\n\n<p>Android SDK Build Tool version should be updated to min 32.0.0. Go to SDK Manager -> Android SDK -> SDK Tools (select show package details checkbox) and make sure 32.0.0 is installed. If not, select and install it.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"999\" height=\"730\" src=\"https:\/\/www.netexl.com\/blog\/wp-content\/uploads\/2022\/09\/image.png\" alt=\"\" class=\"wp-image-1296\" srcset=\"https:\/\/www.netexl.com\/blog\/wp-content\/uploads\/2022\/09\/image.png 999w, https:\/\/www.netexl.com\/blog\/wp-content\/uploads\/2022\/09\/image-300x219.png 300w, https:\/\/www.netexl.com\/blog\/wp-content\/uploads\/2022\/09\/image-768x561.png 768w, https:\/\/www.netexl.com\/blog\/wp-content\/uploads\/2022\/09\/image-280x205.png 280w\" sizes=\"auto, (max-width: 999px) 100vw, 999px\" \/><\/figure>\n\n\n\n<p>We also need to update java version to java 11 otherwise you will see an error as following when compiling the APK.<\/p>\n\n\n\n<p>Android Gradle plugin requires Java 11 to run.<\/p>\n\n\n\n<p>If its an old project, delete previous platform and add new by specifically specifying the version<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ncordova platform remove android\ncordova platform add android@11.0.0\n<\/pre><\/div>\n\n\n<p>For new projects simply add the platform as following<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ncordova platform add android@11.0.0\n<\/pre><\/div>\n\n\n<p> <strong>References:<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/cordova.apache.org\/announcements\/2022\/07\/12\/cordova-android-release-11.0.0.html\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/cordova.apache.org\/announcements\/2022\/07\/12\/cordova-android-release-11.0.0.html<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/ionic.zendesk.com\/hc\/en-us\/articles\/7891143965975-Migrating-to-Cordova-Android-11\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/ionic.zendesk.com\/hc\/en-us\/articles\/7891143965975-Migrating-to-Cordova-Android-11<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google Play Store has updated the target API level requirements. All app submissions are required to target Android 12 (API level 31) or higher. Cordova developers also need to upgrade to cordova-android 11.0.0. Check out following link for cordova update instructions. https:\/\/www.netexl.com\/blog\/use-cordova-to-compile-html5-games-to-android-app\/ Once we update to cordova version 11 there are a few dependencies which also need to be updated. Android SDK Build Tool version should be updated to min 32.0.0. Go to SDK Manager -> Android SDK -> SDK Tools (select show package details checkbox) and make sure 32.0.0 is installed. If not, select and install it. We also need to update java version to java 11 otherwise you will see an error as following when compiling the APK. Android Gradle plugin requires Java 11 to run. If its an old project, delete previous platform and add new by specifically specifying the version For new projects simply add the[&#8230;]<\/p>\n","protected":false},"author":5,"featured_media":1539,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,28],"tags":[],"class_list":["post-1295","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-android","category-cordova"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/posts\/1295","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/comments?post=1295"}],"version-history":[{"count":4,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/posts\/1295\/revisions"}],"predecessor-version":[{"id":1305,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/posts\/1295\/revisions\/1305"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/media\/1539"}],"wp:attachment":[{"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/media?parent=1295"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/categories?post=1295"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/tags?post=1295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}