You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cordova not available when using livereload on CLI 3.19.1 on Android Emulator #2973
Cordova not available in android emulator while live-reload turned ON. Cordova detected when running without live-reload.
But in case of IOS, it works perfectly fine with live-reload.
Hello! Before days ago i had this problem and, most solutions not works for me, including @stanlleyramalho solution. After tests and searchs, i finded another similar solution and this works for me!
Edit file node_modules/@ionic/app-scripts/dist/dev-server/serve-config.js and change last line to:
Activity
stanlleyramalho commentedon Feb 16, 2018
Replace in node_modules/@ionic/app-scripts/dist/dev-server/serve-config.js:
exports.ANDROID_PLATFORM_PATH = path.join('platforms', 'android', 'assets', 'www');
to
exports.ANDROID_PLATFORM_PATH = path.join('platforms', 'android', 'app', 'src', 'main', 'assets', 'www');
imhoffd commentedon Feb 21, 2018
Thanks for posting the issue! This is actually a duplicate issue of ionic-team/ionic-app-scripts#1380
prasanthnv commentedon Feb 28, 2018
I downgraded android platform version to 6+ and it works fine.
stenioanibal commentedon Apr 11, 2018
Hello! Before days ago i had this problem and, most solutions not works for me, including @stanlleyramalho solution. After tests and searchs, i finded another similar solution and this works for me!
Edit file node_modules/@ionic/app-scripts/dist/dev-server/serve-config.js and change last line to:
In bad case, run
ionic cordova platform remove androidand add again.I expect this works for you!