Hi Ionic lovers
I’m fighting with ionic since two weeks. I’m trying to display images in my android app but, since a while I can’t
Many weeks before, the images were properly shown. After updating my project, I could not handle images using the img tag.
For example, if I use this :
<img src="assets/img/image-header-home.jpg"/>
The image is not shown with in the androïd app (it does with ionic serve). But it’s working if I’m using CSS :
background-image: url('../assets/img/image-header-home.jpg');
I saw with chrome inspect that I have errors :
Error: Cannot match any routes. URL Segment: 'android_asset/www
ERROR SyntaxError: Unexpected token } in JSON at position 11628
Failed to load resource: net::ERR_FILE_NOT_FOUND
I tryed to solve them but i don’t really understand the errors themselves.
My configuration :
cli packages: (C:\Users\BUNLON\Documents\IonicProject\digiteal\node_modules)
@ionic/cli-utils : 1.9.2
ionic (Ionic CLI) : 3.9.2
global packages:
Cordova CLI : 7.0.1
local packages:
@ionic/app-scripts : 2.1.4
Cordova Platforms : android 6.2.3
Ionic Framework : ionic-angular 3.0.1
System:
Android SDK Tools : 26.0.2
Node : v6.10.3
npm : 3.10.10
OS : Windows 10
I would be glad If someone could help me
thanks !