When I try to ionic build android something is causing the main.js file not to be generated so the following error is kicking out when attempting to run it on a local device:
E/AndroidProtocolHandler: Unable to open asset URL: file:///android_asset/www/build/main.js
Just solved this â was due to TS errors and a leftover .tmp directory that was failing to clean out. Look in the ârunâ log in the console to track down any compiler errorsâŚ
Solved in my case. I really had a build error in the console log. ionic serve was working, but not the android build. There seem to be stricter rules! In my case a pipe call was not working, see [SOLVED] Pipes in RC0 . After fixing that, the android build worked again and main.js was created.