distriqt / ANE-CustomResources

Android Custom Resources for AIR Applications
https://airnativeextensions.com
15 stars 4 forks source link

Failed to build APK after adding CustomResources ANE #20

Closed shaymolho closed 6 years ago

shaymolho commented 6 years ago

Hi @marchbold ,

I'm Trying to add icon for the push notifications.

I've added only 1 file (ic_push_notif.png) to the customResources and built it by instructions. The ANE build completed successfully. But after adding the ANE to my project the APK build fail on this error: aapt tool failed:invalid resource directory name: C:\Users\shay\AppData\Local\Temp\e32ea5eb-fcbc-4350-9251-0c8e035ed787\customresources ic_push_notif.png

This is the ANE (added zip for the upload) com.distriqt.CustomResources.ane.zip

What am I doing wrong? Thanks Shay

marchbold commented 6 years ago

You need to place your resources in the correct directories. You should never have an image in the root of the resources directory.

Are you using the Android Asset Studio to generate your icons ? https://romannurik.github.io/AndroidAssetStudio/icons-notification.html

When you use this tool you will find a res directory with subdirectories named like drawable-xxxx.

shaymolho commented 6 years ago

OK, i got it, now it works. Thanks!

marchbold commented 6 years ago

Great stuff! 👍