After updating to cordova-android@7.1.4 (from 6.4.0) I started seeing the following error when running meteor run android:
MeteorWebApp: Could not load asset manager cache
MeteorWebApp: java.io.FileNotFoundException: cdvasset.manifest
Since anyone trying to write the cdvasset.manifest file probably also needs to invoke the rather uniquely-named cdvCreateAssetManifest task (see the file changed by this PR, build-extras.gradle), I googled that, and eventually came across this build-extras.gradle file from another Cordova plugin project.
These files are almost the same, except for the way inAssetsDir is defined, and the comment about supporting cordova-android <7.0.0 was another tip-off that I should try using file("src/main/assets") instead of just file("assets").
Although I can't claim I understand every detail of what's happening here, the new code falls back to doing what it did before when src/main/assets does not exist, so I think it's a relatively conservative change.
After updating to
cordova-android@7.1.4
(from 6.4.0) I started seeing the following error when runningmeteor run android
:Since anyone trying to write the
cdvasset.manifest
file probably also needs to invoke the rather uniquely-namedcdvCreateAssetManifest
task (see the file changed by this PR,build-extras.gradle
), I googled that, and eventually came across thisbuild-extras.gradle
file from another Cordova plugin project.These files are almost the same, except for the way
inAssetsDir
is defined, and the comment about supportingcordova-android
<7.0.0 was another tip-off that I should try usingfile("src/main/assets")
instead of justfile("assets")
.Although I can't claim I understand every detail of what's happening here, the new code falls back to doing what it did before when
src/main/assets
does not exist, so I think it's a relatively conservative change.