Ionic android file not found error (file in asset folder)

@kukkuraghu Kukkuraghu
Sat, 09 Jul 2016 10:31:30 +0000
ionic

@kukkuraghu wrote:

I am trying to build a basic android app using ionic.

Started with the blank template.

Then tried to implement the "ToDo" app in the ionic documentation.

Everything works fine when the app is launched on the browser (ionic serve).

But when tried to run the app on android, I am facing a problem.

The android app runs. But it fails to load the newly added html templates (new_task.html) from the asset folder.
I have attached a screen shot from chrome inspect.

chrome_inspect.png909x546 270 KB

But the file is loaded in C:\Users\raghu\Documents\development\ionic\simplydo\platforms\android\assets\www
I have attached the screen shot of the file explorer.

file_structure.png1147x461 177 KB

I have tried removing the android platform and then adding it again. Then generated the app again, but no luck.

ionic version : 1.7.16
cordova version : 6.2.0
cordova android version : 5.1.1

I am developing it on windows 8.1

Any clue on this?

Posts: 4

Participants: 2