Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ionic CodePush failure: no such file or directory, lstat './platforms/android/assets/www/' #3

Closed
dc165015 opened this issue Sep 21, 2018 · 2 comments

Comments

@dc165015
Copy link

I followed the official ionic codepush example.

It used the platforms/android/assets/www folder, but there is neither assets folder, nor www folder under platforms/android in my project.

I also tried: ionic build, ionic cordova build android, ionic cordova prepare android. They are the same. The assets folder wasn't created at all.

Where I can solve this problem?

@rromantp
Copy link

I followed the official ionic codepush example.

It used the platforms/android/assets/www folder, but there is neither assets folder, nor www folder under platforms/android in my project.

I also tried: ionic build, ionic cordova build android, ionic cordova prepare android. They are the same. The assets folder wasn't created at all.

Where I can solve this problem?

use ./platforms/android/app/src/main/assets/www/ . Make sure to use --prod --release flags so sourcemaps are not generated

@Dellos7
Copy link
Owner

Dellos7 commented Sep 26, 2018

Hello!

It seems that the cordova-android asset path changed in version 7. See ionic-team/ionic-app-scripts#1380. So if you are using a version >= 7 for the cordova-android package then the asset folder will be as @rromantp said: ./platforms/android/app/src/main/assets/www.

I'm going to update the readme so it's updated.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants