CopyPastor

Detecting plagiarism made easy.

Score: 0.8430447123887497; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2023-05-29
by Ahmed Salama

Original Post

Original - Posted on 2021-05-31
by Tareq Joy



            
Present in both answers; Present only in the new answer; Present only in the old answer;

The problem is that your asset is specific to a certain configuration, so if the configuration doesn't match with device settings then the drawable can't be found by resource and will lead to a crash.
Some variants are:
- drawable (base, if not found in any folder) - drawable-ldpi (low-resolution devices will look into it) - drawable-mdpi (medium-resolution devices will look into it) - drawable-v24 (devices with API level v24 or v24+ will look into it)
For more info, you can see: https://developer.android.com/training/multiscreen/screendensities
**To Fix it:**
1. Goto Android window and expand **app > res > drawable**, find the drawable, and right-click on it. From the menu goto **Refactor > Move File**...
2. From the text edit box remove the substring after the word "drawable" (for ex. "-xxhdpi" after the drawable word which we should remove) and press Refactor.
The problem is that your asset is specific to a certain configuration, so if the configuration doesn't match with device settings then the drawable can't be found by resource and will lead to a crash.
Some variants are:
- drawable (base, if not found in any folder) - drawable-ldpi (low-resolution devices will look into it) - drawable-mdpi (medium-resolution devices will look into it) - drawable-v24 (devices with API level v24 or v24+ will look into it)
For more info, you can see: https://developer.android.com/training/multiscreen/screendensities
To Fix it:
1) Goto **Android** window and expand **app > res > drawable**, find the drawable, and right-click on it. From the menu goto **Refactor > Move File...** [![enter image description here][1]][1]

2) From the text edit box remove the substring after the word "*drawable*" (in the image you can see "*-xxxhdpi*" after the drawable word which we should remove) and press Refactor. [![enter image description here][2]][2]
Now, you're good to go.
[1]: https://i.stack.imgur.com/bxHXG.png [2]: https://i.stack.imgur.com/65NyP.png

        
Present in both answers; Present only in the new answer; Present only in the old answer;