Missing Resource file when building with Android.mk

1.4k Views Asked by At

I have resource files in res/drawable-xhdpi folder of my Android project.

Android Studio doesnt have any problem building the application and it runs fine.

I am moving the project to Android.mk and i get the following at build time "warning: no entries written for drawable/resource_name". When I try to run the built apk, I get a Resource not found error.

Can any one please guide me as to what I am missing?

Thanks.

2

There are 2 best solutions below

4
Anindya Dutta On

In some cases, cleaning the project helps. Check with that first.

0
Anindya Dutta On

Instead of doing mm, do a full build of the app perhaps? (using make)

Also, there was this error I faced once, though I am not completely sure if it is applicable here. You should have one copy in res/drawable irrespective of whichever overlay you're putting it in. It is because the compiler first checks drawable and then overrides it with the device specific overlay. If it doesn't find it there, it will throw an error.