Issue
I am using int stringID = context.getApplicationInfo().labelRes to get the application name resource ID. Then I use context.getString(stringID) to get the application name.
I get
W/ResourceType: No package identifier when getting value for resource number 0x00000000
android.content.res.Resources$NotFoundException: String resource ID #0x0
Any idea why labelRes is 0?
Solution
I was able to fix this by specifying the label in strings.xml before the label was passed from the Gradle build file using manifestPlaceholders.
The problem in the third party library is they are not checking if applicationInfo.lableRes is 0.
Answered By - LonsomeHell
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.