Ionic image did not shown in android device

in my ionic project i use images. i add images in path “assets->images->imageone.png”
the image correctly show when in browser(ionic serve)
but i build the android app and text in my android device the image didnt show.

44 PM

Did you remote debug the problem on the device already? Follow these instructions here to debug the problem in Chrome dev tools: https://ionic.zone/debug/remote-debug-your-app#android Look at the console and network tabs for errors.

How do you reference your images?
Is the path correct on the Android device?

Can you please show you code? That will be helpful.

this is my code<img src="../../assets/images/midbtn.png" >

I edited your post to make I changed your post to format your code or error message correctly.
Please use the </> button above the post input field to format your code or error message or wrap it in ``` (“code fences”) manually. This will make sure your text is readable and if it recognizes the programming language it also automatically adds code syntax highlighting. Thanks.

Get rid of the ../../ and try again.

Try this way.

<img src="assets/images/midbtn.png" >

2 Likes

its working tnx for your help

2 Likes