Created
July 18, 2020 08:12
-
-
Save unyo/12097adb963b2278664412d19e63224f to your computer and use it in GitHub Desktop.
Fix missing _next folder in Cordova. net::ERR_FILE_NOT_FOUND, file:///android_asset/www/_next/*
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this allows cordova to import folders under _next, which are by default ignored for some reason | |
// copy this file to platforms/android/build-extras.gradle | |
// https://stackoverflow.com/questions/9206117/how-to-workaround-autoomitting-fiiles-folders-starting-with-underscore-in/55299304#55299304 | |
// https://issues.apache.org/jira/browse/CB-9448?focusedCommentId=15033508&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-15033508 | |
ext.postBuildExtras = { | |
android { | |
aaptOptions { | |
ignoreAssetsPattern "!._" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment