android.content.res.Resources$NotFoundException

Prompt that the component ID cannot be found. The error code is:

 expobjStar.setText(locationModule.getVisitcount());

expobjStar The component has been bound before, but the ID cannot be found. The error reason is setText() The following value is an int type number, so when compiling, this number will be used as the ID to find components. The solution is:, Just convert the number to string string type, directly after + ""

Last modification: March 23, 2019
Do you like my article?
Don't forget to praise or appreciate, let me know that you accompany me on the way of creation.