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

notification resource-file causing source path error #183

Closed
rolinger opened this issue Oct 14, 2019 · 0 comments
Closed

notification resource-file causing source path error #183

rolinger opened this issue Oct 14, 2019 · 0 comments
Labels
android Relates to Android platform documentation Documentation issue

Comments

@rolinger
Copy link

I followed all the steps here : https://github.com/dpa99c/cordova-plugin-firebasex#android-default-notification-icon

Created the icons, then added the <resource-file ...> lines to the config.xml file (and the <edit-config ...and finally added the files to the /app/res/src/main/res/drawable-XYpi` folders and when I did my first build I got the following error:

Source path does not exist: resources/android/drawable-hdpi/notification_icon.png

To fix this, I had to add all the icon files to the /project/resources/android/drawable-XYpifolders. In fact, for my Ionic project, I had to create the drawable folders as this did not exist. My assumption was if those files and config.xml resource-files were defined thecordova build androidwould auto create/add the folders and files to the/project/resources` directory for me.

In the documentation, you might want to reflect what I had to do to get those files added to the project - it took me a few minutes to realize the source path does not exist was because it wasn't being auto created.

@dpa99c dpa99c added android Relates to Android platform documentation Documentation issue labels Oct 22, 2019
@dpa99c dpa99c closed this as completed in ca2621e Nov 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Relates to Android platform documentation Documentation issue
Projects
None yet
Development

No branches or pull requests

2 participants