https://kotlinlang.org logo
#android
Title
# android
n

Nikola Milovic

03/10/2020, 8:27 AM
Any reason my layout is not being found? this is R
Copy code
com.nikolam.nsdkelper public final class com.nikolam.nsdkelper.R
and this is what's happening, the last thing i added was my library module to my app.gradle
Copy code
dependancies{
implementation project(":nsdkelper")
}
I tried the solutions found online, the cache, the rebuild and so on, but haven't had any luck.
s

satyan

03/10/2020, 8:30 AM
The only thing I see would be this: https://developer.android.com/studio/projects/android-library#PrivateResources There a mechanism to declare public resource of a library. However:
All resources in a library default to public.
Did you declare at least one public resource in your lib making the rest private ?
n

Nikola Milovic

03/10/2020, 8:39 AM
Thank you! After reading about it I understand why was this the issue.
s

satyan

03/10/2020, 9:10 AM
So did you find your solution ? 🙂