Skip to content

Instantly share code, notes, and snippets.

@unyo
Created July 18, 2020 08:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unyo/12097adb963b2278664412d19e63224f to your computer and use it in GitHub Desktop.
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 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